Stroke-ia commited on
Commit
db6937b
·
verified ·
1 Parent(s): cbfbe9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,7 +62,7 @@ if st.sidebar.button("Tester une image exemple"):
62
  if os.path.exists("example.jpg"):
63
  img = Image.open("example.jpg")
64
  path = predict_image(img, conf=conf_threshold, show_labels=show_labels)
65
- st.image(path, caption="Exemple annoté", use_column_width=True)
66
  else:
67
  st.warning("⚠️ Aucun fichier example.jpg trouvé dans le projet.")
68
 
@@ -89,7 +89,7 @@ image_file = st.file_uploader("Uploader une image", type=["jpg", "jpeg", "png"])
89
  if image_file and st.button("Analyser l'image"):
90
  image = Image.open(image_file)
91
  result_path = predict_image(image, conf=conf_threshold, show_labels=show_labels)
92
- st.image(result_path, caption="Image annotée", use_column_width=True)
93
 
94
  # Disclaimer
95
  st.markdown(f"""
 
62
  if os.path.exists("example.jpg"):
63
  img = Image.open("example.jpg")
64
  path = predict_image(img, conf=conf_threshold, show_labels=show_labels)
65
+ st.image(path, caption="Exemple annoté", use_container_width=True)
66
  else:
67
  st.warning("⚠️ Aucun fichier example.jpg trouvé dans le projet.")
68
 
 
89
  if image_file and st.button("Analyser l'image"):
90
  image = Image.open(image_file)
91
  result_path = predict_image(image, conf=conf_threshold, show_labels=show_labels)
92
+ st.image(result_path, caption="Image annotée", use_container_width=True)
93
 
94
  # Disclaimer
95
  st.markdown(f"""