navid72m commited on
Commit
c762fe4
·
verified ·
1 Parent(s): 4559067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def answer_question_from_pdf(pdf_text, question):
46
  # This function should return the answer to the question based on the PDF content
47
  # Here we just return a mock response
48
 
49
- return query( {"inputs": "Based on this content: "pdf_text+" The Question is: "+ question + " Provide the answer with max lenghth of about 100",})
50
 
51
  # Function to extract text from PDF
52
  def extract_text_from_pdf(pdf_file):
 
46
  # This function should return the answer to the question based on the PDF content
47
  # Here we just return a mock response
48
 
49
+ return query( {"inputs": "Based on this content: " + pdf_text+" The Question is: "+ question + " Provide the answer with max lenghth of about 100",})
50
 
51
  # Function to extract text from PDF
52
  def extract_text_from_pdf(pdf_file):