notSoNLPnerd commited on
Commit
479646e
1 Parent(s): 620a0ce
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def app_init():
86
 
87
 
88
  def main():
89
- p1, p2 = app_init()
90
  st.title("Haystack Demo")
91
  input = st.text_input("Query ...")
92
 
@@ -101,7 +101,10 @@ def main():
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
 
 
86
 
87
 
88
  def main():
89
+ p1, p2, p3 = app_init()
90
  st.title("Haystack Demo")
91
  input = st.text_input("Query ...")
92
 
 
101
 
102
  with col_2:
103
  st.write(query_type.upper())
104
+ if query_type == "Retrieval Augmented":
105
+ answers_2 = p2.run(input)
106
+ else:
107
+ answers_2 = p3.run(input)
108
  st.text(answers_2['results'][0])
109
 
110