vishalkatheriya commited on
Commit
3f8e55d
1 Parent(s): 12ab3b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -74,13 +74,12 @@ st.sidebar.markdown('</div>', unsafe_allow_html=True)
74
 
75
  # Display the uploaded image and process it if available
76
  if uploaded_image is not None:
 
 
77
  # Task prompt input
78
  task_prompt = st.text_input("Task Prompt", value="Describe the image in detail:")
79
  # Additional text input (optional)
80
- text_input = st.text_area("Additional Text Input (Optional)", height=150)
81
- image = Image.open(uploaded_image)
82
- st.image(image, caption="Uploaded Image", use_column_width=True)
83
-
84
  # Generate Caption button
85
  if st.button("Generate Caption", key="Generate") and not st.session_state.has_run:
86
  # Mark that the script has been run
 
74
 
75
  # Display the uploaded image and process it if available
76
  if uploaded_image is not None:
77
+ image = Image.open(uploaded_image)
78
+ st.image(image, caption="Uploaded Image", use_column_width=True)
79
  # Task prompt input
80
  task_prompt = st.text_input("Task Prompt", value="Describe the image in detail:")
81
  # Additional text input (optional)
82
+ text_input = st.text_area("Input Questions", height=50)
 
 
 
83
  # Generate Caption button
84
  if st.button("Generate Caption", key="Generate") and not st.session_state.has_run:
85
  # Mark that the script has been run