Spaces:
Runtime error
Runtime error
Commit
·
7ecf182
1
Parent(s):
f0858d7
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def get_file_size(file):
|
|
100 |
file.seek(0)
|
101 |
return file_size
|
102 |
|
103 |
-
@st.cache_data
|
104 |
#function to display the PDF of a given file
|
105 |
# def displayPDF(file):
|
106 |
# # Opening file from file path
|
@@ -114,7 +114,7 @@ def get_file_size(file):
|
|
114 |
# st.markdown(pdf_display, unsafe_allow_html=True)
|
115 |
|
116 |
# Display conversation history using Streamlit messages
|
117 |
-
def display_conversation(
|
118 |
for i in range(len(_history["generated"])):
|
119 |
st.message(_history["past"][i], is_user=True, key=str(i) + "_user")
|
120 |
st.message(_history["generated"][i], key=str(i))
|
|
|
100 |
file.seek(0)
|
101 |
return file_size
|
102 |
|
103 |
+
# @st.cache_data
|
104 |
#function to display the PDF of a given file
|
105 |
# def displayPDF(file):
|
106 |
# # Opening file from file path
|
|
|
114 |
# st.markdown(pdf_display, unsafe_allow_html=True)
|
115 |
|
116 |
# Display conversation history using Streamlit messages
|
117 |
+
def display_conversation(history):
|
118 |
for i in range(len(_history["generated"])):
|
119 |
st.message(_history["past"][i], is_user=True, key=str(i) + "_user")
|
120 |
st.message(_history["generated"][i], key=str(i))
|