Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,11 +63,11 @@ def generate_answer(context, query):
|
|
63 |
st.title("RAG-Based PDF Question Answering Application")
|
64 |
|
65 |
# Upload PDF
|
66 |
-
uploaded_file = st.file_uploader("
|
67 |
|
68 |
if uploaded_file is not None:
|
69 |
# Extract text from the uploaded PDF
|
70 |
-
pdf_text =
|
71 |
|
72 |
st.write("Extracted text from PDF:")
|
73 |
st.text_area("PDF Content", pdf_text, height=200)
|
|
|
63 |
st.title("RAG-Based PDF Question Answering Application")
|
64 |
|
65 |
# Upload PDF
|
66 |
+
uploaded_file = st.file_uploader("monopoly.pdf", type="pdf")
|
67 |
|
68 |
if uploaded_file is not None:
|
69 |
# Extract text from the uploaded PDF
|
70 |
+
pdf_text = extract_text_from_pdf(uploaded_file)
|
71 |
|
72 |
st.write("Extracted text from PDF:")
|
73 |
st.text_area("PDF Content", pdf_text, height=200)
|