Update app.py
Browse files
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 |
-
|
102 |
-
|
103 |
-
|
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:
|