Spaces:
Runtime error
Runtime error
Commit
·
2d37288
1
Parent(s):
d4f02fe
fixed unique key issue
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ if select_task=='Detect Sentiment':
|
|
| 73 |
for i,t in enumerate(input_texts.split(',')):
|
| 74 |
if sentiments[i]=='Positive':
|
| 75 |
response=st_text_rater(t + f"--> This statement is {sentiments[i]}",
|
| 76 |
-
color_background='rgb(154,205,50)')
|
| 77 |
else:
|
| 78 |
response = st_text_rater(t + f"--> This statement is {sentiments[i]}",
|
| 79 |
-
color_background='rgb(233, 116, 81)')
|
|
|
|
| 73 |
for i,t in enumerate(input_texts.split(',')):
|
| 74 |
if sentiments[i]=='Positive':
|
| 75 |
response=st_text_rater(t + f"--> This statement is {sentiments[i]}",
|
| 76 |
+
color_background='rgb(154,205,50)',key=t)
|
| 77 |
else:
|
| 78 |
response = st_text_rater(t + f"--> This statement is {sentiments[i]}",
|
| 79 |
+
color_background='rgb(233, 116, 81)',key=t)
|