Update app.py
Browse files
app.py
CHANGED
|
@@ -99,13 +99,10 @@ def main():
|
|
| 99 |
camera_photo=None
|
| 100 |
if c2.button("CaptureImage"):
|
| 101 |
camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
global Summarize
|
| 107 |
-
Summarize=True
|
| 108 |
-
time.sleep(3)
|
| 109 |
if st.session_state["photo"]=="done" or message:
|
| 110 |
if uploaded_photo and uploaded_photo.type=='application/pdf':
|
| 111 |
tet = read_pdf(uploaded_photo)
|
|
|
|
| 99 |
camera_photo=None
|
| 100 |
if c2.button("CaptureImage"):
|
| 101 |
camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
|
| 102 |
+
if c2.button("Stop camera"):
|
| 103 |
+
CaptureImage =False
|
| 104 |
+
uploaded_photo = c3.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
|
| 105 |
+
|
|
|
|
|
|
|
|
|
|
| 106 |
if st.session_state["photo"]=="done" or message:
|
| 107 |
if uploaded_photo and uploaded_photo.type=='application/pdf':
|
| 108 |
tet = read_pdf(uploaded_photo)
|