vishalkatheriya commited on
Commit
5cb608b
1 Parent(s): 18d19c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,7 +79,7 @@ if uploaded_image is not None:
79
  # Task prompt input
80
  task_prompt = st.sidebar.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
@@ -90,6 +90,6 @@ if uploaded_image is not None:
90
  if st.session_state.has_run:
91
  if st.button("Clear and Upload New Image"):
92
  st.session_state.has_run = False
93
- st.experimental_rerun()
94
 
95
  st.markdown('</div>', unsafe_allow_html=True)
 
79
  # Task prompt input
80
  task_prompt = st.sidebar.text_input("Task Prompt", value="Describe the image in detail:")
81
  # Additional text input (optional)
82
+ text_input = st.sidebar.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
 
90
  if st.session_state.has_run:
91
  if st.button("Clear and Upload New Image"):
92
  st.session_state.has_run = False
93
+ #st.experimental_rerun()
94
 
95
  st.markdown('</div>', unsafe_allow_html=True)