Soumen commited on
Commit
03a8d76
·
1 Parent(s): 1be3da5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -98,10 +98,9 @@ def main():
98
  message = c1.text_input("Type your text here!")
99
  uploaded_photo=None
100
  camera_photo=None
101
- if c3.button("CaptureImage"):
102
- camera_photo = c3.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
103
- if c3.button("Stop camera"):
104
- CaptureImage =False
105
  uploaded_photo = c2.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
106
  #Summarize=True
107
  if st.session_state["photo"]=="done" or message:
 
98
  message = c1.text_input("Type your text here!")
99
  uploaded_photo=None
100
  camera_photo=None
101
+ camera_photo = c3.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
102
+ if c3.button("Stop camera"):
103
+ camera_photo=False
 
104
  uploaded_photo = c2.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
105
  #Summarize=True
106
  if st.session_state["photo"]=="done" or message: