Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,9 +35,9 @@ def pdf_changes(pdf_doc, open_ai_key):
|
|
35 |
|
36 |
|
37 |
def infer(question):
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
return result["answer"]
|
42 |
|
43 |
css="""
|
|
|
35 |
|
36 |
|
37 |
def infer(question):
|
38 |
+
query = question
|
39 |
+
result = pdf_qa({"question": query})
|
40 |
+
print(result)
|
41 |
return result["answer"]
|
42 |
|
43 |
css="""
|