Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,10 @@ st.title("Image Whisper App")
|
|
7 |
|
8 |
uploaded_image = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
|
9 |
|
|
|
|
|
|
|
|
|
10 |
if st.button("Submit"):
|
11 |
with st.spinner("Analyzing image and generating narration... Please wait."):
|
12 |
processed_image, text, audio = get_predictions(uploaded_image)
|
|
|
7 |
|
8 |
uploaded_image = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
|
9 |
|
10 |
+
if uploaded_image is not None:
|
11 |
+
st.subheader("Uploaded Image")
|
12 |
+
st.image(uploaded_image, use_column_width=True)
|
13 |
+
|
14 |
if st.button("Submit"):
|
15 |
with st.spinner("Analyzing image and generating narration... Please wait."):
|
16 |
processed_image, text, audio = get_predictions(uploaded_image)
|