Update app.py
Browse files
app.py
CHANGED
|
@@ -30,8 +30,9 @@ uploaded_audio = st.file_uploader("Upload an audio file", type = ['mp3','mov','e
|
|
| 30 |
if uploaded_image is not None:
|
| 31 |
with st.spinner("Loading image..."):
|
| 32 |
time.sleep(1) # Simulate a delay
|
| 33 |
-
image =
|
| 34 |
caption = generate_image_caption(image)
|
|
|
|
| 35 |
st.image(image, caption='Uploaded Image', use_column_width=True)
|
| 36 |
|
| 37 |
#Play audio with apinner:
|
|
|
|
| 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 |
caption = generate_image_caption(image)
|
| 35 |
+
print(caption)
|
| 36 |
st.image(image, caption='Uploaded Image', use_column_width=True)
|
| 37 |
|
| 38 |
#Play audio with apinner:
|