fixed variable type
Browse files
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 |
|