hohdavid commited on
Commit
c0618e7
·
verified ·
1 Parent(s): 261d7a9

fixed variable type

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ if models_loaded:
98
 
99
  conf = max(0.0, min(1.0, (res['confidence'] + 0.1)))
100
  st.markdown(f"**Option {i+1}**")
101
- st.progress(conf, text=f"Confidence: {conf*100:.1f}%")
102
  st.info(res['text'])
103
  st.write("")
104
 
 
98
 
99
  conf = max(0.0, min(1.0, (res['confidence'] + 0.1)))
100
  st.markdown(f"**Option {i+1}**")
101
+ st.progress(float(conf), text=f"Confidence: {conf*100:.1f}%")
102
  st.info(res['text'])
103
  st.write("")
104