Spaces:
Runtime error
Runtime error
app.py updated
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ if submit:
|
|
43 |
text=alt_text
|
44 |
st.success(f"input text is set to '{text}'")
|
45 |
else:
|
46 |
-
st.success('Hey, tweet received',icon='ππΌ')
|
47 |
|
48 |
#import the model
|
49 |
pipe=pipeline(model=selected_model)
|
@@ -58,16 +58,16 @@ if submit:
|
|
58 |
#output
|
59 |
if lable=='NEGATIVE' or lable=='LABEL_0':
|
60 |
with col1:
|
61 |
-
com.iframe("https://
|
62 |
col2.write('NEGATIVE')
|
63 |
col3.write(f'{score*100:.2f}%')
|
64 |
elif lable=='POSITIVE'or lable=='LABEL_2':
|
65 |
with col1:
|
66 |
-
com.iframe("https://
|
67 |
col2.write('POSITIVE')
|
68 |
col3.write(f'{score*100:.2f}%')
|
69 |
else:
|
70 |
with col1:
|
71 |
-
com.iframe("https://
|
72 |
col2.write('NEUTRAL')
|
73 |
col3.write(f'{score*100:.2f}%')
|
|
|
43 |
text=alt_text
|
44 |
st.success(f"input text is set to '{text}'")
|
45 |
else:
|
46 |
+
st.success('Hey, tweet received', icon='ππΌ')
|
47 |
|
48 |
#import the model
|
49 |
pipe=pipeline(model=selected_model)
|
|
|
58 |
#output
|
59 |
if lable=='NEGATIVE' or lable=='LABEL_0':
|
60 |
with col1:
|
61 |
+
com.iframe("https://lottie.host/?file=c8010531-31de-4dc8-8952-1aa854314455/NQNXZWPduv.json")
|
62 |
col2.write('NEGATIVE')
|
63 |
col3.write(f'{score*100:.2f}%')
|
64 |
elif lable=='POSITIVE'or lable=='LABEL_2':
|
65 |
with col1:
|
66 |
+
com.iframe("https://lottie.host/?file=51ba274f-064a-4d67-877b-159f4490a944/pBBe4CCH8e.json")
|
67 |
col2.write('POSITIVE')
|
68 |
col3.write(f'{score*100:.2f}%')
|
69 |
else:
|
70 |
with col1:
|
71 |
+
com.iframe("https://lottie.host/?file=4e8f4b09-bafb-4ff8-9749-2470c459dce1/v5FATJ9QVm.json")
|
72 |
col2.write('NEUTRAL')
|
73 |
col3.write(f'{score*100:.2f}%')
|