Spaces:
Sleeping
Sleeping
remove unnecessary material
Browse files- streamlit_app.py +1 -7
streamlit_app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
import base64
|
2 |
import os
|
3 |
import re
|
4 |
from hashlib import blake2b
|
@@ -322,11 +321,6 @@ with st.sidebar:
|
|
322 |
"""If you switch the mode to "Embedding," the system will return specific chunks from the document that are semantically related to your query. This mode helps to test why sometimes the answers are not satisfying or incomplete. """)
|
323 |
|
324 |
|
325 |
-
# @st.cache_resource
|
326 |
-
def get_pdf_display(binary):
|
327 |
-
pdf_viewer(binary)
|
328 |
-
# return F'<embed src="data:application/pdf;base64,{base64_pdf}" width="100%" height="700" type="application/pdf"></embed>'
|
329 |
-
|
330 |
|
331 |
if uploaded_file and not st.session_state.loaded_embeddings:
|
332 |
if model not in st.session_state['api_keys']:
|
@@ -351,7 +345,7 @@ if uploaded_file and not st.session_state.loaded_embeddings:
|
|
351 |
|
352 |
with left_column:
|
353 |
if st.session_state['binary']:
|
354 |
-
|
355 |
|
356 |
with right_column:
|
357 |
# css = '''
|
|
|
|
|
1 |
import os
|
2 |
import re
|
3 |
from hashlib import blake2b
|
|
|
321 |
"""If you switch the mode to "Embedding," the system will return specific chunks from the document that are semantically related to your query. This mode helps to test why sometimes the answers are not satisfying or incomplete. """)
|
322 |
|
323 |
|
|
|
|
|
|
|
|
|
|
|
324 |
|
325 |
if uploaded_file and not st.session_state.loaded_embeddings:
|
326 |
if model not in st.session_state['api_keys']:
|
|
|
345 |
|
346 |
with left_column:
|
347 |
if st.session_state['binary']:
|
348 |
+
pdf_viewer(st.session_state['binary'])
|
349 |
|
350 |
with right_column:
|
351 |
# css = '''
|