antoniorached commited on
Commit
ddf762d
1 Parent(s): e61306a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def process_pdf_and_answer(pdf_file, question):
63
 
64
  # Process the question
65
  res = chain({"question": question})
66
- answer = res["answer"]
67
 
68
  gr.Interface(
69
  fn=process_pdf_and_answer,
 
63
 
64
  # Process the question
65
  res = chain({"question": question})
66
+ return res["answer"]
67
 
68
  gr.Interface(
69
  fn=process_pdf_and_answer,