Update app.py
Browse files
app.py
CHANGED
@@ -90,11 +90,10 @@ def save(l):
|
|
90 |
def main():
|
91 |
import streamlit as st
|
92 |
if "photo" not in st.session_state:
|
93 |
-
|
94 |
-
c2, c3 = st.columns([1,1])
|
95 |
a, b = st.columns([1, 1])
|
96 |
def change_photo_state():
|
97 |
-
|
98 |
with st.container():
|
99 |
with a:
|
100 |
#import torch
|
@@ -131,6 +130,7 @@ def main():
|
|
131 |
for chat in st.session_state.history:
|
132 |
st_message(**chat)
|
133 |
with b:
|
|
|
134 |
message = st.text_input("Type your text here!")
|
135 |
camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
|
136 |
uploaded_photo = save(c3.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state))
|
|
|
90 |
def main():
|
91 |
import streamlit as st
|
92 |
if "photo" not in st.session_state:
|
93 |
+
st.session_state["photo"]="not done"
|
|
|
94 |
a, b = st.columns([1, 1])
|
95 |
def change_photo_state():
|
96 |
+
st.session_state["photo"]="done"
|
97 |
with st.container():
|
98 |
with a:
|
99 |
#import torch
|
|
|
130 |
for chat in st.session_state.history:
|
131 |
st_message(**chat)
|
132 |
with b:
|
133 |
+
c2, c3 = st.columns([1,1])
|
134 |
message = st.text_input("Type your text here!")
|
135 |
camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
|
136 |
uploaded_photo = save(c3.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state))
|