Spaces:
Build error
Build error
Commit
•
4af649e
1
Parent(s):
f64b56d
arreglado problema covid
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ def search_and_answer(
|
|
174 |
)
|
175 |
print(f"Transcripted question: *** {question} ****")
|
176 |
if any([any([term in word.lower() for term in covidterms]) for word in question.split(" ")]):
|
177 |
-
return "Del COVID no queremos saber ya más nada, lo sentimos, pregúntame sobre otra cosa :P ", "ni contexto ni contexta." "tmptdsnrh_8.flac"
|
178 |
contexts = query_index(question)
|
179 |
contexts = sort_on_similarity(question, contexts)
|
180 |
context = create_context(contexts)
|
|
|
174 |
)
|
175 |
print(f"Transcripted question: *** {question} ****")
|
176 |
if any([any([term in word.lower() for term in covidterms]) for word in question.split(" ")]):
|
177 |
+
return "Del COVID no queremos saber ya más nada, lo sentimos, pregúntame sobre otra cosa :P ", "ni contexto ni contexta.", "tmptdsnrh_8.flac"
|
178 |
contexts = query_index(question)
|
179 |
contexts = sort_on_similarity(question, contexts)
|
180 |
context = create_context(contexts)
|