JBDef commited on
Commit
5d557b7
β€’
1 Parent(s): 1db5735

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,13 +1,13 @@
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.camera_input("Upload image")
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: