Spaces:
Sleeping
Sleeping
siddhantuniyal
commited on
Commit
•
a522b6a
1
Parent(s):
4a57049
Update app.py
Browse files
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
|
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"
|