siddhantuniyal commited on
Commit
a522b6a
1 Parent(s): 4a57049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def get_response(input_text):
11
 
12
  try:
13
  # response = model.generate_content(f"I have an assignment which should seem like it is made by a {level}, it should have atleast {number_of_words} characters and should contain {how_many_errors} errors. The topic is '{topic}.'")
14
- response = model.generate_content(f"Give 3 outputs to the following input statement as a list of [sentiment(positive , negative , neutral] , polarity score , issue against the police mentioned] : {input_text}")
15
  return response.text
16
  except Exception as e:
17
  return "Invalid Input"
 
11
 
12
  try:
13
  # response = model.generate_content(f"I have an assignment which should seem like it is made by a {level}, it should have atleast {number_of_words} characters and should contain {how_many_errors} errors. The topic is '{topic}.'")
14
+ response = model.generate_content(f"Give polarity score as a single number between 1 and 0 for the following sentence : {input_text}")
15
  return response.text
16
  except Exception as e:
17
  return "Invalid Input"