bardicreels commited on
Commit
1f06e31
1 Parent(s): 43930be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -77,7 +77,8 @@ st.title("(PDF) Information and Inference")
77
  st.markdown("Retrieval-Augmented Generation")
78
 
79
  if 'messages' not in st.session_state:
80
- st.session_state.messages = [{'role': 'assistant', "content": 'Hello! Upload a PDF or select a preloaded PDF and ask me anything about its content.'}]
 
81
 
82
  with st.sidebar:
83
  st.title("Menu:")
 
77
  st.markdown("Retrieval-Augmented Generation")
78
 
79
  if 'messages' not in st.session_state:
80
+ preloaded_pdfs_list = ", ".join(PRELOADED_PDFS) if PRELOADED_PDFS else "No preloaded PDFs available"
81
+ st.session_state.messages = [{'role': 'assistant', "content": f'Hello! I have the following preloaded PDFs: {preloaded_pdfs_list}. You can also upload your own PDF. Once a PDF is selected or uploaded, ask me anything about its content.'}]
82
 
83
  with st.sidebar:
84
  st.title("Menu:")