sabatale commited on
Commit
37dde2c
1 Parent(s): 25af997

Update utils/haystack.py

Browse files
Files changed (1) hide show
  1. utils/haystack.py +1 -1
utils/haystack.py CHANGED
@@ -59,7 +59,7 @@ def query(prompt, _pipe):
59
  }
60
  })
61
 
62
- raw = result['answer_builder']['answers'][0]
63
  result = raw.data + "\n\n -- Source: " + raw.documents[0].content + " --"
64
  print(raw)
65
  except Exception as e:
 
59
  }
60
  })
61
 
62
+ raw = replies['answer_builder']['answers'][0]
63
  result = raw.data + "\n\n -- Source: " + raw.documents[0].content + " --"
64
  print(raw)
65
  except Exception as e: