Szeyu commited on
Commit
219ba36
·
verified ·
1 Parent(s): c5449c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,9 +26,10 @@ st.write("Image to Story")
26
  # File uploader for image and audio
27
  uploaded_image = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
28
 
 
29
  # Display image with spinner
30
  if uploaded_image is not None:
31
- with st.spinner("Loading image..."):
32
  time.sleep(1) # Simulate a delay
33
  image = Image.open(uploaded_image)
34
  st.image(image, caption="Uploaded Image", use_column_width=True)
 
26
  # File uploader for image and audio
27
  uploaded_image = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
28
 
29
+ # Display image with spinner
30
  # Display image with spinner
31
  if uploaded_image is not None:
32
+ with st.spinner("Loading image..."):
33
  time.sleep(1) # Simulate a delay
34
  image = Image.open(uploaded_image)
35
  st.image(image, caption="Uploaded Image", use_column_width=True)