Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ load_dotenv()
|
|
| 11 |
searcher = NeuralSearcher("pokemon_texts", "pokemon_images", qdrant_client, encoder, image_encoder, processor, sparse_encoder)
|
| 12 |
semantic_cache = SemanticCache(qdrant_client, encoder, "semantic_cache", 0.75)
|
| 13 |
|
| 14 |
-
def chat_pokemon(message: str):
|
| 15 |
answer = semantic_cache.search_cache(message)
|
| 16 |
if answer != "":
|
| 17 |
r = ""
|
|
|
|
| 11 |
searcher = NeuralSearcher("pokemon_texts", "pokemon_images", qdrant_client, encoder, image_encoder, processor, sparse_encoder)
|
| 12 |
semantic_cache = SemanticCache(qdrant_client, encoder, "semantic_cache", 0.75)
|
| 13 |
|
| 14 |
+
def chat_pokemon(message: str, history):
|
| 15 |
answer = semantic_cache.search_cache(message)
|
| 16 |
if answer != "":
|
| 17 |
r = ""
|