Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def main():
|
|
100 |
st.subheader("Please, feed your image/text, features/services will appear automatically!")
|
101 |
message = st.text_input("Type your text here!")
|
102 |
camera_photo = st.camera_input("Take a photo, Containing English or Bangla texts", on_change=change_photo_state)
|
103 |
-
|
104 |
if "photo" not in st.session_state:
|
105 |
st.session_state["photo"]="not done"
|
106 |
if st.session_state["photo"]=="done" or message:
|
|
|
100 |
st.subheader("Please, feed your image/text, features/services will appear automatically!")
|
101 |
message = st.text_input("Type your text here!")
|
102 |
camera_photo = st.camera_input("Take a photo, Containing English or Bangla texts", on_change=change_photo_state)
|
103 |
+
uploaded_photo = st.file_uploader("Upload Image, Containing English or Bangla texts",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
|
104 |
if "photo" not in st.session_state:
|
105 |
st.session_state["photo"]="not done"
|
106 |
if st.session_state["photo"]=="done" or message:
|