boldhasnain commited on
Commit
a7b2a1f
·
verified ·
1 Parent(s): a5fc709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ documents = extract_text_from_pdf(pdf_path)
23
 
24
  # Load documents from the PDF file
25
  pdf_path = 't1.pdf' # Path to your PDF file
26
- loader = extract_text_from_pdf(pdf_path)
27
- documents = loader.load_data()
28
 
29
  # Initialize Hugging Face LLM
30
  system_prompt = """# You are a Q&A assistant. Your goal is to answer questions as
 
23
 
24
  # Load documents from the PDF file
25
  pdf_path = 't1.pdf' # Path to your PDF file
26
+ documents = extract_text_from_pdf(pdf_path)
27
+ #documents = loader.load_data()
28
 
29
  # Initialize Hugging Face LLM
30
  system_prompt = """# You are a Q&A assistant. Your goal is to answer questions as