Update app.py
Browse files
app.py
CHANGED
|
@@ -104,7 +104,7 @@ def main():
|
|
| 104 |
if c2.button("Stop camera"):
|
| 105 |
CaptureImage =False
|
| 106 |
|
| 107 |
-
uploaded_photo =
|
| 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)
|
|
|
|
| 104 |
if c2.button("Stop camera"):
|
| 105 |
CaptureImage =False
|
| 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:
|
| 109 |
if uploaded_photo and uploaded_photo.type=='application/pdf':
|
| 110 |
tet = read_pdf(uploaded_photo)
|