Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
question = pipeline("question-answering" ,
|
5 |
def main():
|
6 |
st.title("Visual Question Answering")
|
7 |
|
8 |
with st.form("text_field"):
|
9 |
-
file = st.
|
10 |
-
text_input = st.text_input("Enter some question
|
11 |
# clicked==True only when the button is clicked
|
12 |
clicked = st.form_submit_button("Submit")
|
13 |
if clicked:
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
question = pipeline("question-answering" , model="JBDef/finetuned_yelp")
|
5 |
def main():
|
6 |
st.title("Visual Question Answering")
|
7 |
|
8 |
with st.form("text_field"):
|
9 |
+
file = st.file_uploader("Upload image", type=["jpg", "png"] )
|
10 |
+
text_input = st.text_input("Enter some question :")
|
11 |
# clicked==True only when the button is clicked
|
12 |
clicked = st.form_submit_button("Submit")
|
13 |
if clicked:
|