ankitv42 commited on
Commit
a1a2d99
·
verified ·
1 Parent(s): 2c98ffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def ask_question(query):
64
  if "rag_chain" not in globals():
65
  return "Please upload and process a PDF first."
66
 
67
- response = rag_chain.invoke(query)
68
  return response
69
 
70
  # Gradio UI
 
64
  if "rag_chain" not in globals():
65
  return "Please upload and process a PDF first."
66
 
67
+ response = rag_chain.invoke(query).content
68
  return response
69
 
70
  # Gradio UI