Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def main():
|
|
14 |
clicked = st.form_submit_button("Submit")
|
15 |
if clicked:
|
16 |
img = Image.open(file)
|
17 |
-
image = st.image(img)
|
18 |
results = question(image , str(text_input))
|
19 |
st.json(results)
|
20 |
|
|
|
14 |
clicked = st.form_submit_button("Submit")
|
15 |
if clicked:
|
16 |
img = Image.open(file)
|
17 |
+
image = st.image(img , type="pil")
|
18 |
results = question(image , str(text_input))
|
19 |
st.json(results)
|
20 |
|