m7mdal7aj commited on
Commit
4fd1ca2
1 Parent(s): 6d7d2bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -53,14 +53,3 @@ image = st.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])
53
 
54
  # Text input for the question
55
  question = st.text_input("Enter your question about the image:")
56
-
57
- if st.button("Get Answer"):
58
- if image is not None and question:
59
- # Display the image
60
- st.image(image, use_column_width=True)
61
- # Get and display the answer
62
- model, processor = load_caption_model()
63
- answer = answer_question(image, question, model, processor)
64
- st.write(answer)
65
- else:
66
- st.write("Please upload an image and enter a question.")
 
53
 
54
  # Text input for the question
55
  question = st.text_input("Enter your question about the image:")