Update app.py
Browse files
app.py
CHANGED
@@ -100,22 +100,23 @@ def get_conversation_chain(vectorstore:FAISS) -> ConversationalRetrievalChain:
|
|
100 |
return conversation_chain
|
101 |
|
102 |
|
103 |
-
st.markdown("""
|
104 |
-
<style>
|
105 |
-
|
106 |
text-align:center;
|
107 |
align-items: center;
|
108 |
justify-content: center;
|
109 |
-
}
|
110 |
</style>""", unsafe_allow_html=True)
|
111 |
|
112 |
|
|
|
113 |
def main():
|
114 |
st.title("SemaNaPDF📚")
|
115 |
# upload file
|
116 |
pdf = st.file_uploader("Upload a PDF Document", type="pdf")
|
117 |
if pdf is not None:
|
118 |
-
with st.spinner("
|
119 |
# get pdf text
|
120 |
raw_text = get_pdf_text(pdf)
|
121 |
|
|
|
100 |
return conversation_chain
|
101 |
|
102 |
|
103 |
+
st.markdown ("""
|
104 |
+
<style> div.stSpinner > div {
|
105 |
+
text-align:center;
|
106 |
text-align:center;
|
107 |
align-items: center;
|
108 |
justify-content: center;
|
109 |
+
}
|
110 |
</style>""", unsafe_allow_html=True)
|
111 |
|
112 |
|
113 |
+
|
114 |
def main():
|
115 |
st.title("SemaNaPDF📚")
|
116 |
# upload file
|
117 |
pdf = st.file_uploader("Upload a PDF Document", type="pdf")
|
118 |
if pdf is not None:
|
119 |
+
with st.spinner(""):
|
120 |
# get pdf text
|
121 |
raw_text = get_pdf_text(pdf)
|
122 |
|