Spaces:
Sleeping
Sleeping
Update sentiment_analysis.py
Browse files- sentiment_analysis.py +2 -2
sentiment_analysis.py
CHANGED
|
@@ -6,8 +6,8 @@ class SentimentAnalysisTool(Tool):
|
|
| 6 |
name = "sentiment_analysis"
|
| 7 |
description = "This tool analyses the sentiment of a given text."
|
| 8 |
|
| 9 |
-
inputs =
|
| 10 |
-
outputs =
|
| 11 |
|
| 12 |
# Available sentiment analysis models
|
| 13 |
models = {
|
|
|
|
| 6 |
name = "sentiment_analysis"
|
| 7 |
description = "This tool analyses the sentiment of a given text."
|
| 8 |
|
| 9 |
+
inputs = {"text": {"type": "text", "description": "The text to analyze"}}
|
| 10 |
+
outputs = {"json": {"type": "json", "description": "Sentiment analysis results"}}
|
| 11 |
|
| 12 |
# Available sentiment analysis models
|
| 13 |
models = {
|