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