sabatale commited on
Commit
e2b1e4b
1 Parent(s): 12c393f

Update utils/haystack.py

Browse files
Files changed (1) hide show
  1. utils/haystack.py +4 -1
utils/haystack.py CHANGED
@@ -61,8 +61,11 @@ def query(prompt, _pipe):
61
  })
62
 
63
  raw = replies['answer_builder']['answers'][0]
64
- result = raw.data + "\n\n -- Source: " + raw.documents[0].content + " --"
65
  print(raw)
 
 
 
66
  st.success('Completed!')
67
  except Exception as e:
68
  print("Hay:")
 
61
  })
62
 
63
  raw = replies['answer_builder']['answers'][0]
64
+ print("Raw:")
65
  print(raw)
66
+ result = raw.data + "\n\n -- Source: " + raw.documents[0].content + " --"
67
+ print("Result:")
68
+ print(raw.data)
69
  st.success('Completed!')
70
  except Exception as e:
71
  print("Hay:")