Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,9 @@ def get_session_by_id(session_id: str) -> BaseChatMessageHistory:
|
|
33 |
|
34 |
if not st.session_state.read_file:
|
35 |
|
36 |
-
st.title('π€ FaΓ§a o Upload de seu arquivo PDF para que possamos conversar sobre ele'
|
37 |
if st.session_state.language.startswith("pt")
|
38 |
-
else 'π€ Upload your PDF to talk with it',
|
39 |
anchor=False)
|
40 |
file = st.file_uploader('Carregue o seu arquivo PDF'
|
41 |
if st.session_state.language.startswith("pt")
|
@@ -63,13 +63,13 @@ if not st.session_state.read_file:
|
|
63 |
if st.session_state.language.startswith("pt")
|
64 |
else 'π§ File read successfully!!!')
|
65 |
os.remove('file.pdf')
|
66 |
-
with st.spinner('π΄ Acordando
|
67 |
if st.session_state.language.startswith("pt")
|
68 |
-
else 'π΄ Waking up
|
69 |
st.session_state.graph = get_graph(st.session_state.retriever)
|
70 |
-
st.success('π
|
71 |
if st.session_state.language.startswith("pt")
|
72 |
-
else 'π
|
73 |
st.balloons()
|
74 |
placeholder = st.empty()
|
75 |
for _ in range(5, -1, -1):
|
|
|
33 |
|
34 |
if not st.session_state.read_file:
|
35 |
|
36 |
+
st.title('π€ FaΓ§a o Upload de seu arquivo PDF para que possamos conversar sobre ele!'
|
37 |
if st.session_state.language.startswith("pt")
|
38 |
+
else 'π€ Upload your PDF to talk with it!',
|
39 |
anchor=False)
|
40 |
file = st.file_uploader('Carregue o seu arquivo PDF'
|
41 |
if st.session_state.language.startswith("pt")
|
|
|
63 |
if st.session_state.language.startswith("pt")
|
64 |
else 'π§ File read successfully!!!')
|
65 |
os.remove('file.pdf')
|
66 |
+
with st.spinner('π΄ Acordando DocAI...'
|
67 |
if st.session_state.language.startswith("pt")
|
68 |
+
else 'π΄ Waking up DocAI...', show_time=True):
|
69 |
st.session_state.graph = get_graph(st.session_state.retriever)
|
70 |
+
st.success('π DocAI pronto e operante!!!'
|
71 |
if st.session_state.language.startswith("pt")
|
72 |
+
else 'π DocAI awakened!!!')
|
73 |
st.balloons()
|
74 |
placeholder = st.empty()
|
75 |
for _ in range(5, -1, -1):
|