stevafernandes commited on
Commit
c56131c
·
verified ·
1 Parent(s): 5e2594b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -63,7 +63,7 @@ def user_input(user_question, api_key):
63
 
64
  def main():
65
  st.set_page_config(page_title="Chat PDF")
66
- st.header("Retrieval-Augmented Generation - Gemini 2.0")
67
  st.markdown("---")
68
 
69
  # STEP 1: Use API key from env or ask user
@@ -91,7 +91,7 @@ def main():
91
 
92
  # STEP 2: Upload PDF(s)
93
  if not st.session_state["pdf_processed"]:
94
- st.subheader("Step 2: Upload your PDF file(s)")
95
  pdf_docs = st.file_uploader("Upload PDF files", accept_multiple_files=True, type=['pdf'])
96
  if st.button("Submit & Process PDFs"):
97
  if pdf_docs:
@@ -107,8 +107,8 @@ def main():
107
  st.stop()
108
 
109
  # STEP 3: Ask questions
110
- st.subheader("Step 3: Ask a question about your PDFs")
111
- user_question = st.text_input("Ask a question")
112
  if user_question:
113
  user_input(user_question, api_key)
114
 
 
63
 
64
  def main():
65
  st.set_page_config(page_title="Chat PDF")
66
+ st.header("Librarianship Gemini 2.0 Flash - Chris C.")
67
  st.markdown("---")
68
 
69
  # STEP 1: Use API key from env or ask user
 
91
 
92
  # STEP 2: Upload PDF(s)
93
  if not st.session_state["pdf_processed"]:
94
+ st.subheader("Step 1: Upload your PDF file(s)")
95
  pdf_docs = st.file_uploader("Upload PDF files", accept_multiple_files=True, type=['pdf'])
96
  if st.button("Submit & Process PDFs"):
97
  if pdf_docs:
 
107
  st.stop()
108
 
109
  # STEP 3: Ask questions
110
+ st.subheader("Step 2: Ask a question about your PDFs")
111
+ user_question = st.text_input("Ask a question related to trained librarianship document")
112
  if user_question:
113
  user_input(user_question, api_key)
114