Spaces:
Runtime error
Runtime error
Commit
·
b9ea11e
1
Parent(s):
af8323b
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ examples = [
|
|
| 16 |
|
| 17 |
def sentiment_analysis(text):
|
| 18 |
output = sentiment(text)
|
| 19 |
-
return output
|
| 20 |
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=sentiment_analysis,
|
|
|
|
| 16 |
|
| 17 |
def sentiment_analysis(text):
|
| 18 |
output = sentiment(text)
|
| 19 |
+
return output[0]
|
| 20 |
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=sentiment_analysis,
|