notSoNLPnerd commited on
Commit
d727ca7
1 Parent(s): fecdd86

import, answer

Browse files
Files changed (2) hide show
  1. app.py +4 -6
  2. requirements.txt +5 -1
app.py CHANGED
@@ -96,15 +96,13 @@ def main():
96
 
97
  with col_1:
98
  st.text("PLAIN")
99
- answers = p1.run(input)["answers"]
100
- for ans in answers:
101
- st.text(ans.answer)
102
 
103
  with col_2:
104
  st.write(query_type.upper())
105
- answers = p2.run(input)["answers"]
106
- for ans in answers:
107
- st.text(ans.answer)
108
 
109
 
110
  if __name__ == "__main__":
 
96
 
97
  with col_1:
98
  st.text("PLAIN")
99
+ answers = p1.run(input)
100
+ st.text(answers['results'][0])
 
101
 
102
  with col_2:
103
  st.write(query_type.upper())
104
+ answers_2 = p2.run(input)
105
+ st.text(answers_2['results'][0])
 
106
 
107
 
108
  if __name__ == "__main__":
requirements.txt CHANGED
@@ -1 +1,5 @@
1
- git+https://github.com/deepset-ai/haystack.git@ffd02c29f7cc83a119b6440bfbabaacdaaac3a19#egg=farm-haystack
 
 
 
 
 
1
+ git+https://github.com/deepset-ai/haystack.git@ffd02c29f7cc83a119b6440bfbabaacdaaac3a19#egg=farm-haystack
2
+ faiss==1.7.2
3
+ sqlalchemy>=1.4.2,<2
4
+ sqlalchemy_utils
5
+ psycopg2-binary