elvis-d commited on
Commit
74c3512
Β·
1 Parent(s): dbb6ffb

app.py updated

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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://embed.lottiefiles.com/animation/125694")
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://embed.lottiefiles.com/animation/148485")
67
  col2.write('POSITIVE')
68
  col3.write(f'{score*100:.2f}%')
69
  else:
70
  with col1:
71
- com.iframe("https://embed.lottiefiles.com/animation/136052")
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}%')