snaramirez872 commited on
Commit
005032e
·
1 Parent(s): f6e0191

edited app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,5 +19,5 @@ classifier = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
19
  if user_input is not None:
20
  predicts = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
21
 
22
- st.markdown("##Probabilities")
23
- st.write(f"{ p['label']}: { round(p['score'] * 100, 1)}%")
 
19
  if user_input is not None:
20
  predicts = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
21
 
22
+ st.markdown("## Probabilities")
23
+ st.write(f"{ predicts['label']}: { round(predicts['score'] * 100, 1)}%")