Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,8 @@ print(top_results)
|
|
| 74 |
client = InferenceClient("Qwen/Qwen2.5-72B-instruct")
|
| 75 |
|
| 76 |
def respond(message, history, name, country): # Generate a response using the most relevant travel info chunks
|
| 77 |
-
|
|
|
|
| 78 |
str_top_chunks = "\n".join(top_chunks)
|
| 79 |
|
| 80 |
messages = [
|
|
|
|
| 74 |
client = InferenceClient("Qwen/Qwen2.5-72B-instruct")
|
| 75 |
|
| 76 |
def respond(message, history, name, country): # Generate a response using the most relevant travel info chunks
|
| 77 |
+
new_message = message + " " + country
|
| 78 |
+
top_chunks = get_top_chunks(new_message, chunk_embeddings, cleaned_chunks)
|
| 79 |
str_top_chunks = "\n".join(top_chunks)
|
| 80 |
|
| 81 |
messages = [
|