Update app.py
Browse files
app.py
CHANGED
@@ -77,20 +77,20 @@ score=output_dict['score']
|
|
77 |
# s = scores[ranking[0]]
|
78 |
|
79 |
#output
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
|
96 |
|
|
|
77 |
# s = scores[ranking[0]]
|
78 |
|
79 |
#output
|
80 |
+
if lable=='NEGATIVE':
|
81 |
+
with col1:
|
82 |
+
com.iframe("https://embed.lottiefiles.com/animation/125694")
|
83 |
+
col2.write('NEGATIVE')
|
84 |
+
col3.write(f'{score*100:.2f}%')
|
85 |
+
elif lable=='POSITIVE':
|
86 |
+
with col1:
|
87 |
+
com.iframe("https://embed.lottiefiles.com/animation/148485")
|
88 |
+
col2.write('POSITIVE')
|
89 |
+
col3.write(f'{score*100:.2f}%')
|
90 |
+
else:
|
91 |
+
with col1:
|
92 |
+
com.iframe("https://embed.lottiefiles.com/animation/136052")
|
93 |
+
col2.write('NEUTRAL')
|
94 |
+
col3.write(f'{score*100:.2f}%')
|
95 |
|
96 |
|