Spaces:
Build error
Build error
avacaondata
commited on
Commit
·
e947cfa
1
Parent(s):
47ee11f
limpieza
Browse files
app.py
CHANGED
@@ -91,8 +91,7 @@ def query_index(question: str):
|
|
91 |
)
|
92 |
contexts = [
|
93 |
closest_passages["text"][i] for i in range(len(closest_passages["text"]))
|
94 |
-
]
|
95 |
-
# [:int(topk / 3)]
|
96 |
return [
|
97 |
context for context in contexts if len(context.split()) > min_snippet_length
|
98 |
]
|
|
|
91 |
)
|
92 |
contexts = [
|
93 |
closest_passages["text"][i] for i in range(len(closest_passages["text"]))
|
94 |
+
]# [:int(topk / 3)]
|
|
|
95 |
return [
|
96 |
context for context in contexts if len(context.split()) > min_snippet_length
|
97 |
]
|