lekkalar commited on
Commit
5de47a3
1 Parent(s): 4873dd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,12 +53,12 @@ def infer(question, history):
53
  results = []
54
  for human, ai in history[:-1]:
55
  pair = (human, ai)
56
- res.append(pair)
57
 
58
  chat_history = results
59
  print(chat_history)
60
  query = question
61
- result = qa({"question": query, "chat_history": chat_history})
62
  print(result)
63
  return result["answer"]
64
 
 
53
  results = []
54
  for human, ai in history[:-1]:
55
  pair = (human, ai)
56
+ results.append(pair)
57
 
58
  chat_history = results
59
  print(chat_history)
60
  query = question
61
+ result = pdf_qa({"question": query, "chat_history": chat_history})
62
  print(result)
63
  return result["answer"]
64