lekkalar commited on
Commit
de0c29d
1 Parent(s): bb56ef0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 chain.run(question)
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="type in your question")
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