nornorr commited on
Commit
001f537
·
1 Parent(s): fde3893

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ classifier = pipeline("image-to-text", model="vit-gpt2-image-captioning")
5
  def main():
6
  st.title("image-to-text")
7
 
8
- with st.form("text_field"):
9
  image = st.file_uploader('Choose a file')
10
  # clicked==True only when the button is clicked
11
  clicked = st.form_submit_button("Submit")
 
5
  def main():
6
  st.title("image-to-text")
7
 
8
+ with st.form("image_field"):
9
  image = st.file_uploader('Choose a file')
10
  # clicked==True only when the button is clicked
11
  clicked = st.form_submit_button("Submit")