Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -918,7 +918,7 @@ def main():
|
|
918 |
summary = process_video(youtube_url)
|
919 |
st.write(summary)
|
920 |
st.session_state.messages.append({"role": "assistant", "content": f"I've processed the YouTube video. Here's a summary:\n\n{summary}"})
|
921 |
-
st.
|
922 |
|
923 |
uploaded_pdf = st.file_uploader("Upload a PDF file", type="pdf")
|
924 |
if st.button("Process PDF"):
|
@@ -927,7 +927,7 @@ def main():
|
|
927 |
pdf_summary = text_summarize(texts)
|
928 |
st.write(pdf_summary)
|
929 |
st.session_state.messages.append({"role": "assistant", "content": f"PDF processed and added to knowledge base. Here's a summary:\n\n{pdf_summary}"})
|
930 |
-
st.
|
931 |
|
932 |
st.header("Chat")
|
933 |
|
|
|
918 |
summary = process_video(youtube_url)
|
919 |
st.write(summary)
|
920 |
st.session_state.messages.append({"role": "assistant", "content": f"I've processed the YouTube video. Here's a summary:\n\n{summary}"})
|
921 |
+
st.rerun()
|
922 |
|
923 |
uploaded_pdf = st.file_uploader("Upload a PDF file", type="pdf")
|
924 |
if st.button("Process PDF"):
|
|
|
927 |
pdf_summary = text_summarize(texts)
|
928 |
st.write(pdf_summary)
|
929 |
st.session_state.messages.append({"role": "assistant", "content": f"PDF processed and added to knowledge base. Here's a summary:\n\n{pdf_summary}"})
|
930 |
+
st.rerun()
|
931 |
|
932 |
st.header("Chat")
|
933 |
|