Spaces:
Runtime error
Runtime error
Commit ·
74e6beb
1
Parent(s): 1073d53
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,5 +19,6 @@ if image_upload:
|
|
| 19 |
|
| 20 |
if st.button("Generate Caption") and image_upload:
|
| 21 |
|
|
|
|
| 22 |
caption = image_to_text(image)[0]['caption']
|
| 23 |
st.markdown(f"**Generated Caption:**" ,caption)
|
|
|
|
| 19 |
|
| 20 |
if st.button("Generate Caption") and image_upload:
|
| 21 |
|
| 22 |
+
image_data = image_upload.read()
|
| 23 |
caption = image_to_text(image)[0]['caption']
|
| 24 |
st.markdown(f"**Generated Caption:**" ,caption)
|