Shanulhaq commited on
Commit
6e0b698
·
verified ·
1 Parent(s): 6ce7d63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("Upload a PDF file", type="pdf")
67
 
68
  if uploaded_file is not None:
69
  # Extract text from the uploaded PDF
70
- pdf_text = monopoly.pdf(uploaded_file)
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)