Update functions.py
Browse files- functions.py +1 -2
functions.py
CHANGED
@@ -194,7 +194,6 @@ def embed_text(query,corpus,title,embedding_model,_emb_tok,chain_type='stuff'):
|
|
194 |
|
195 |
answer = chain({"input_documents": docs, "question": query}, return_only_outputs=False)
|
196 |
|
197 |
-
return answer
|
198 |
|
199 |
elif chain_type == 'Refined':
|
200 |
|
@@ -207,7 +206,7 @@ def embed_text(query,corpus,title,embedding_model,_emb_tok,chain_type='stuff'):
|
|
207 |
question_prompt=initial_qa_prompt, refine_prompt=refine_prompt)
|
208 |
answer = chain({"input_documents": docs, "question": query}, return_only_outputs=False)
|
209 |
|
210 |
-
|
211 |
|
212 |
@st.experimental_singleton(suppress_st_warning=True)
|
213 |
def get_spacy():
|
|
|
194 |
|
195 |
answer = chain({"input_documents": docs, "question": query}, return_only_outputs=False)
|
196 |
|
|
|
197 |
|
198 |
elif chain_type == 'Refined':
|
199 |
|
|
|
206 |
question_prompt=initial_qa_prompt, refine_prompt=refine_prompt)
|
207 |
answer = chain({"input_documents": docs, "question": query}, return_only_outputs=False)
|
208 |
|
209 |
+
return answer
|
210 |
|
211 |
@st.experimental_singleton(suppress_st_warning=True)
|
212 |
def get_spacy():
|