Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def load_pdf(pdf_doc, open_ai_key):
|
|
34 |
|
35 |
def answer_query(query):
|
36 |
question = query
|
37 |
-
return
|
38 |
|
39 |
|
40 |
html = """
|
@@ -55,7 +55,7 @@ with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
|
|
55 |
|
56 |
|
57 |
with gr.Row():
|
58 |
-
input = gr.Textbox(label="
|
59 |
output = gr.Textbox(label="output")
|
60 |
submit_query = gr.Button("submit")
|
61 |
|
|
|
34 |
|
35 |
def answer_query(query):
|
36 |
question = query
|
37 |
+
return pdf_qa.run(question)
|
38 |
|
39 |
|
40 |
html = """
|
|
|
55 |
|
56 |
|
57 |
with gr.Row():
|
58 |
+
input = gr.Textbox(label="Type in your question")
|
59 |
output = gr.Textbox(label="output")
|
60 |
submit_query = gr.Button("submit")
|
61 |
|