frankai98 commited on
Commit
9d457f8
·
verified ·
1 Parent(s): c233bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def get_top_prediction(predictions):
42
  if uploaded_file is not None:
43
  # Process uploaded image
44
  image = Image.open(uploaded_file)
45
- st.image(image, caption="Uploaded Image", use_column_width=True)
46
 
47
  with st.spinner("Analyzing age..."):
48
  predictions = pipe(image)
@@ -61,7 +61,7 @@ elif 'example_loaded' in st.session_state and st.session_state.example_loaded:
61
  with st.spinner("Loading example image..."):
62
  # Download and load the image properly
63
  image = load_image_from_url(st.session_state.example_image)
64
- st.image(image, caption="Example Image", use_column_width=True)
65
 
66
  with st.spinner("Analyzing age..."):
67
  # Pass the actual PIL Image object to the pipeline
 
42
  if uploaded_file is not None:
43
  # Process uploaded image
44
  image = Image.open(uploaded_file)
45
+ st.image(image, caption="Uploaded Image", use_container_width=True)
46
 
47
  with st.spinner("Analyzing age..."):
48
  predictions = pipe(image)
 
61
  with st.spinner("Loading example image..."):
62
  # Download and load the image properly
63
  image = load_image_from_url(st.session_state.example_image)
64
+ st.image(image, caption="Example Image", use_container_width=True)
65
 
66
  with st.spinner("Analyzing age..."):
67
  # Pass the actual PIL Image object to the pipeline