Spaces:
Runtime error
Runtime error
Commit
·
c19a330
1
Parent(s):
9690ed8
Update main.py
Browse files
main.py
CHANGED
@@ -28,8 +28,8 @@ def create_sentiment_result(sentiment_result: schemas.SentimentResultCreate, tex
|
|
28 |
|
29 |
# Create a new SentimentResult instance
|
30 |
new_sentiment_result = models.SentimentResult(
|
31 |
-
|
32 |
-
|
33 |
text_input=text_content
|
34 |
)
|
35 |
|
|
|
28 |
|
29 |
# Create a new SentimentResult instance
|
30 |
new_sentiment_result = models.SentimentResult(
|
31 |
+
score=sentiment_analysis_result[0]['score'],
|
32 |
+
label = sentiment_analysis_result[0]['label'],
|
33 |
text_input=text_content
|
34 |
)
|
35 |
|