Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
66a67d1
1
Parent(s):
97ce432
Update app.py
Browse files
app.py
CHANGED
@@ -73,8 +73,8 @@ class SentimentAnalyzer:
|
|
73 |
)
|
74 |
|
75 |
# Extract the generated text
|
76 |
-
|
77 |
-
sentiment_scores={sentiment_scores_list}
|
78 |
print(sentiment_scores)
|
79 |
return sentiment_scores
|
80 |
|
|
|
73 |
)
|
74 |
|
75 |
# Extract the generated text
|
76 |
+
sentiment_scores = response.choices[0].text.strip()
|
77 |
+
#sentiment_scores={sentiment_scores_list}
|
78 |
print(sentiment_scores)
|
79 |
return sentiment_scores
|
80 |
|