Update app.py
Browse files
app.py
CHANGED
@@ -74,12 +74,12 @@ def summary(summarization):
|
|
74 |
with right:
|
75 |
file_contents = response1.get('answer', '')
|
76 |
file_name = "summarization_result.txt"
|
77 |
-
st.download_button("Download
|
78 |
|
79 |
|
80 |
def main():
|
81 |
-
st.set_page_config("
|
82 |
-
st.header("
|
83 |
st.write("---")
|
84 |
with st.container():
|
85 |
with st.sidebar:
|
@@ -94,10 +94,10 @@ def main():
|
|
94 |
st.session_state.conversation = get_conversational_chain(vector_store)
|
95 |
st.success("Done")
|
96 |
with st.container():
|
97 |
-
#
|
98 |
-
st.subheader("PDF
|
99 |
st.write('Click on summary button to get summary on given uploaded file.')
|
100 |
-
summarization = st.button("
|
101 |
summary(summarization)
|
102 |
|
103 |
st.write("---")
|
|
|
74 |
with right:
|
75 |
file_contents = response1.get('answer', '')
|
76 |
file_name = "summarization_result.txt"
|
77 |
+
st.download_button("Download Summary", file_contents, file_name=file_name, mime="text/plain")
|
78 |
|
79 |
|
80 |
def main():
|
81 |
+
st.set_page_config("LOR ChatAI")
|
82 |
+
st.header("LOR ChatAI")
|
83 |
st.write("---")
|
84 |
with st.container():
|
85 |
with st.sidebar:
|
|
|
94 |
st.session_state.conversation = get_conversational_chain(vector_store)
|
95 |
st.success("Done")
|
96 |
with st.container():
|
97 |
+
# Summarisation Section
|
98 |
+
st.subheader("PDF Summarisation")
|
99 |
st.write('Click on summary button to get summary on given uploaded file.')
|
100 |
+
summarization = st.button("Summarise")
|
101 |
summary(summarization)
|
102 |
|
103 |
st.write("---")
|