vishalkatheriya commited on
Commit
18d19c8
1 Parent(s): 3f8e55d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -77,13 +77,14 @@ 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
86
  st.session_state.has_run = True
 
87
 
88
  # Clear session state button
89
  if st.session_state.has_run:
 
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.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
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: