vishalkatheriya commited on
Commit
02cdfb8
1 Parent(s): 5cb608b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -84,12 +84,6 @@ if uploaded_image is not None:
84
  if st.button("Generate Caption", key="Generate") and not st.session_state.has_run:
85
  # Mark that the script has been run
86
  st.session_state.has_run = True
87
- st.write(task_prompt,"\n",text_input)
88
 
89
- # Clear session state button
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)
 
84
  if st.button("Generate Caption", key="Generate") and not st.session_state.has_run:
85
  # Mark that the script has been run
86
  st.session_state.has_run = True
87
+ st.write(task_prompt,"\n\n",text_input)
88
 
 
 
 
 
 
89