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