doozer21 commited on
Commit
99926a2
·
verified ·
1 Parent(s): 2ce327e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -288,7 +288,7 @@ def main():
288
  if uploaded_file is not None:
289
  try:
290
  image = Image.open(uploaded_file)
291
- st.image(image, caption="Uploaded Image", use_column_width=True)
292
 
293
  with st.spinner("🧠 Analyzing..."):
294
  img_tensor = preprocess_image(image)
@@ -305,7 +305,7 @@ def main():
305
  if camera_photo is not None:
306
  try:
307
  image = Image.open(camera_photo)
308
- st.image(image, caption="Camera Photo", use_column_width=True)
309
 
310
  with st.spinner("🧠 Analyzing..."):
311
  img_tensor = preprocess_image(image)
 
288
  if uploaded_file is not None:
289
  try:
290
  image = Image.open(uploaded_file)
291
+ st.image(image, caption="Uploaded Image", use_container_width=True)
292
 
293
  with st.spinner("🧠 Analyzing..."):
294
  img_tensor = preprocess_image(image)
 
305
  if camera_photo is not None:
306
  try:
307
  image = Image.open(camera_photo)
308
+ st.image(image, caption="Camera Photo", use_container_width=True)
309
 
310
  with st.spinner("🧠 Analyzing..."):
311
  img_tensor = preprocess_image(image)