anamjafar6 commited on
Commit
aa24ca1
·
verified ·
1 Parent(s): ac3c8f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,7 +109,7 @@ if uploaded_files:
109
  conf = float(np.max(probs))
110
 
111
  with cols[j]:
112
- st.image(display_img, caption=f"Pred: {label} ({conf*100:.1f}%)", use_column_width=True)
113
  st.bar_chart(probs)
114
 
115
  # ---- Drawing Pad ----
@@ -141,7 +141,7 @@ if canvas_result is not None and canvas_result.image_data is not None:
141
  """,
142
  unsafe_allow_html=True
143
  )
144
- st.image(display_img, caption="Preprocessed (28×28) view", width=120)
145
  st.bar_chart(probs)
146
 
147
  # ---- Footer ----
 
109
  conf = float(np.max(probs))
110
 
111
  with cols[j]:
112
+ st.image(display_img, caption=f"Pred: {label} ({conf*100:.1f}%)", use_container_width=True)
113
  st.bar_chart(probs)
114
 
115
  # ---- Drawing Pad ----
 
141
  """,
142
  unsafe_allow_html=True
143
  )
144
+ st.image(display_img, caption="Preprocessed (28×28) view", width=60)
145
  st.bar_chart(probs)
146
 
147
  # ---- Footer ----