Spaces:
Runtime error
Runtime error
added title and description
Browse files
app.py
CHANGED
|
@@ -10,7 +10,12 @@ def sentiment_analysis(text):
|
|
| 10 |
sent = analyzer.predict(text).probas
|
| 11 |
return sent
|
| 12 |
|
| 13 |
-
iface = gr.Interface(sentiment_analysis,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
iface.test_launch()
|
| 16 |
if __name__ == "__main__":
|
|
|
|
| 10 |
sent = analyzer.predict(text).probas
|
| 11 |
return sent
|
| 12 |
|
| 13 |
+
iface = gr.Interface(sentiment_analysis,
|
| 14 |
+
"textbox",
|
| 15 |
+
"label",
|
| 16 |
+
interpretation="default",
|
| 17 |
+
title="Spanish Sentiment Analysis",
|
| 18 |
+
description="Write a sentence in spanish to analyze its sentiment")
|
| 19 |
|
| 20 |
iface.test_launch()
|
| 21 |
if __name__ == "__main__":
|