Spaces:
Sleeping
Sleeping
Commit
·
58a590b
1
Parent(s):
3bc05e9
add print
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ def sentiment_analysis(text: str) -> str:
|
|
| 21 |
"assessment": "positive" if sentiment.polarity > 0 else "negative" if sentiment.polarity < 0 else "neutral"
|
| 22 |
}
|
| 23 |
|
|
|
|
| 24 |
return json.dumps(result)
|
| 25 |
|
| 26 |
# Create the Gradio interface
|
|
|
|
| 21 |
"assessment": "positive" if sentiment.polarity > 0 else "negative" if sentiment.polarity < 0 else "neutral"
|
| 22 |
}
|
| 23 |
|
| 24 |
+
print(result)
|
| 25 |
return json.dumps(result)
|
| 26 |
|
| 27 |
# Create the Gradio interface
|