Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def pdf_changes(pdf_doc, open_ai_key):
|
|
34 |
return "Please provide an OpenAI API key"
|
35 |
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
|
41 |
css="""
|
42 |
#col-container {max-width: 700px; margin-left: auto; margin-right: auto;}
|
|
|
34 |
return "Please provide an OpenAI API key"
|
35 |
|
36 |
|
37 |
+
def answer_query(query):
|
38 |
+
question = query
|
39 |
+
return pdf_qa.run(question)
|
40 |
|
41 |
css="""
|
42 |
#col-container {max-width: 700px; margin-left: auto; margin-right: auto;}
|