Update app.py
Browse files
app.py
CHANGED
@@ -7,13 +7,13 @@ from transformers import (
|
|
7 |
BlenderbotForConditionalGeneration,
|
8 |
)
|
9 |
|
10 |
-
st.title("
|
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
|
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)
|