Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
316f3a8
1
Parent(s):
1efd2e0
Update app.py
Browse files
app.py
CHANGED
@@ -178,11 +178,10 @@ def search(prompt: str):
|
|
178 |
querying.connect("dense_text_embedder.embedding", "retriever.query_embedding")
|
179 |
querying.connect("retriever", "document_joiner")
|
180 |
querying.connect("document_joiner", "ranker")
|
181 |
-
question = "Cosa sono i marker tumorali?"
|
182 |
|
183 |
results = querying.run(
|
184 |
-
{"dense_text_embedder": {"text":
|
185 |
-
"sparse_text_embedder": {"text":
|
186 |
)
|
187 |
|
188 |
|
|
|
178 |
querying.connect("dense_text_embedder.embedding", "retriever.query_embedding")
|
179 |
querying.connect("retriever", "document_joiner")
|
180 |
querying.connect("document_joiner", "ranker")
|
|
|
181 |
|
182 |
results = querying.run(
|
183 |
+
{"dense_text_embedder": {"text": prompt},
|
184 |
+
"sparse_text_embedder": {"text": prompt}}
|
185 |
)
|
186 |
|
187 |
|