Update utils/haystack.py
Browse files- utils/haystack.py +2 -2
utils/haystack.py
CHANGED
@@ -45,11 +45,11 @@ def start_haystack(openai_key):
|
|
45 |
|
46 |
|
47 |
@st.cache_data(show_spinner=True)
|
48 |
-
def query(username,
|
49 |
try:
|
50 |
question = "It doesn't work on Android. The app is not blocking call!!!"
|
51 |
|
52 |
-
replies =
|
53 |
"text_embedder": {
|
54 |
"text": question
|
55 |
},
|
|
|
45 |
|
46 |
|
47 |
@st.cache_data(show_spinner=True)
|
48 |
+
def query(username, _pipe):
|
49 |
try:
|
50 |
question = "It doesn't work on Android. The app is not blocking call!!!"
|
51 |
|
52 |
+
replies = _pipe.run({
|
53 |
"text_embedder": {
|
54 |
"text": question
|
55 |
},
|