Spaces:
Sleeping
Sleeping
el-filatova
commited on
Commit
•
844a9b2
1
Parent(s):
e6ae364
Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,7 @@ def predict(text):
|
|
24 |
output = f"This tweet carries a neutral sentiment with a confidence level of {score}%."
|
25 |
else:
|
26 |
output = f"This tweet carries a positive sentiment with a confidence level of {score}%."
|
27 |
-
|
28 |
-
return output
|
29 |
-
|
30 |
|
31 |
iface = gr.Interface(fn=predict, inputs=[gr.Textbox(value="The feedback received was generally constructive with some areas for improvement highlighted.")], outputs="text")
|
32 |
iface.launch()
|
|
|
24 |
output = f"This tweet carries a neutral sentiment with a confidence level of {score}%."
|
25 |
else:
|
26 |
output = f"This tweet carries a positive sentiment with a confidence level of {score}%."
|
27 |
+
return output
|
|
|
|
|
28 |
|
29 |
iface = gr.Interface(fn=predict, inputs=[gr.Textbox(value="The feedback received was generally constructive with some areas for improvement highlighted.")], outputs="text")
|
30 |
iface.launch()
|