sofzcc commited on
Commit
a7e4605
1 Parent(s): da35cab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.experimental_rerun()
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.experimental_rerun()
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