Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,11 @@ def bansum(text):
|
|
82 |
if isinstance(out, list) and out[0].get("summary_text"):
|
83 |
text_output = out[0]["summary_text"]
|
84 |
st.success(text_output)
|
85 |
-
|
|
|
|
|
|
|
|
|
86 |
c1, c2, c3 = st.columns([2,2,1])
|
87 |
@st.experimental_singleton
|
88 |
def save():
|
@@ -92,10 +96,6 @@ def save():
|
|
92 |
#@st.cache
|
93 |
def main():
|
94 |
import streamlit as st
|
95 |
-
if "photo" not in st.session_state:
|
96 |
-
st.session_state["photo"]="not done"
|
97 |
-
def change_photo_state():
|
98 |
-
st.session_state["photo"]="done"
|
99 |
if st.checkbox("Summarize from text/images/pdfs"):
|
100 |
with st.container():
|
101 |
message = c1.text_input("Type your text here!")
|
|
|
82 |
if isinstance(out, list) and out[0].get("summary_text"):
|
83 |
text_output = out[0]["summary_text"]
|
84 |
st.success(text_output)
|
85 |
+
if "photo" not in st.session_state:
|
86 |
+
st.session_state["photo"]="not done"
|
87 |
+
def change_photo_state():
|
88 |
+
st.session_state["photo"]="done"
|
89 |
+
|
90 |
c1, c2, c3 = st.columns([2,2,1])
|
91 |
@st.experimental_singleton
|
92 |
def save():
|
|
|
96 |
#@st.cache
|
97 |
def main():
|
98 |
import streamlit as st
|
|
|
|
|
|
|
|
|
99 |
if st.checkbox("Summarize from text/images/pdfs"):
|
100 |
with st.container():
|
101 |
message = c1.text_input("Type your text here!")
|