Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,13 @@ def main():
|
|
8 |
|
9 |
with st.form("text_field"):
|
10 |
file = st.file_uploader("Upload image", type=["jpg", "png"] )
|
11 |
-
img = Image.open(file)
|
12 |
-
image = st.image(img)
|
13 |
text_input = st.text_input("Enter some question :")
|
|
|
14 |
# clicked==True only when the button is clicked
|
15 |
clicked = st.form_submit_button("Submit")
|
16 |
-
if clicked:
|
|
|
|
|
17 |
results = question(image , str(text_input))
|
18 |
st.json(results)
|
19 |
|
|
|
8 |
|
9 |
with st.form("text_field"):
|
10 |
file = st.file_uploader("Upload image", type=["jpg", "png"] )
|
|
|
|
|
11 |
text_input = st.text_input("Enter some question :")
|
12 |
+
|
13 |
# clicked==True only when the button is clicked
|
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 |
|