sms07 commited on
Commit
d644eb8
·
1 Parent(s): 8f7faad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,13 +7,13 @@ from transformers import (
7
  BlenderbotForConditionalGeneration,
8
  )
9
 
10
- st.title("Image Upload App")
11
  st.write("Drag and drop an image file here.")
12
 
13
  # Allow the user to upload an image file
14
  image = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
15
 
16
- if uploaded_file is not None:
17
  # Display the uploaded image
18
  image = Image.open(uploaded_file)
19
  st.image(image, caption="Uploaded Image", use_column_width=True)
 
7
  BlenderbotForConditionalGeneration,
8
  )
9
 
10
+ st.title("Georgios-Ioannou-Visual-Question-Answering-With-Hugging-Face")
11
  st.write("Drag and drop an image file here.")
12
 
13
  # Allow the user to upload an image file
14
  image = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
15
 
16
+ if image is not None:
17
  # Display the uploaded image
18
  image = Image.open(uploaded_file)
19
  st.image(image, caption="Uploaded Image", use_column_width=True)