thisisrishi commited on
Commit
e00181f
1 Parent(s): a428ec5

Updated App

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -71,9 +71,8 @@ def handle_query(query):
71
 
72
 
73
  # Streamlit app initialization
74
- st.title("(PDF) Information and Inference🗞️")
75
  st.markdown("Retrieval-Augmented Generation")
76
- st.markdown("start chat ...🚀")
77
 
78
  if 'messages' not in st.session_state:
79
  st.session_state.messages = [{'role': 'assistant', "content": 'Hello! Upload a PDF and ask me anything about its content.'}]
@@ -86,7 +85,7 @@ with st.sidebar:
86
  filepath = "data/saved_pdf.pdf"
87
  with open(filepath, "wb") as f:
88
  f.write(uploaded_file.getbuffer())
89
- # displayPDF(filepath) # Display the uploaded PDF
90
  data_ingestion() # Process PDF every time new file is uploaded
91
  st.success("Done")
92
 
 
71
 
72
 
73
  # Streamlit app initialization
74
+ st.title("(PDF) Information and Inference")
75
  st.markdown("Retrieval-Augmented Generation")
 
76
 
77
  if 'messages' not in st.session_state:
78
  st.session_state.messages = [{'role': 'assistant', "content": 'Hello! Upload a PDF and ask me anything about its content.'}]
 
85
  filepath = "data/saved_pdf.pdf"
86
  with open(filepath, "wb") as f:
87
  f.write(uploaded_file.getbuffer())
88
+ displayPDF(filepath) # Display the uploaded PDF
89
  data_ingestion() # Process PDF every time new file is uploaded
90
  st.success("Done")
91