Update app.py
Browse files
app.py
CHANGED
|
@@ -100,9 +100,9 @@ def main():
|
|
| 100 |
Capture = True
|
| 101 |
if c2.button("Stop Camera"):
|
| 102 |
Capture =False
|
| 103 |
-
if
|
| 104 |
camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
|
| 105 |
-
|
| 106 |
|
| 107 |
uploaded_photo = c3.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
|
| 108 |
if st.session_state["photo"]=="done" or message:
|
|
|
|
| 100 |
Capture = True
|
| 101 |
if c2.button("Stop Camera"):
|
| 102 |
Capture =False
|
| 103 |
+
if Capture:
|
| 104 |
camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
|
| 105 |
+
st.image(camera_photo, caption='Uploaded Image', use_column_width=True)
|
| 106 |
|
| 107 |
uploaded_photo = c3.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
|
| 108 |
if st.session_state["photo"]=="done" or message:
|