Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
| 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
|
| 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
|
| 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 |
|