Chris4K commited on
Commit
fd41f0a
·
verified ·
1 Parent(s): 7b89327

Update sentiment_analysis.py

Browse files
Files changed (1) hide show
  1. 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 = ["text"]
10
- outputs = ["json"]
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 = {