Spaces:
Sleeping
Sleeping
updated data and content
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from sentence_transformers import SentenceTransformer
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
# STEP 2 FROM SEMANTIC SEARCH
|
| 9 |
-
with open("
|
| 10 |
travel_text = file.read()
|
| 11 |
|
| 12 |
# STEP 3 FROM SEMANTIC SEARCH
|
|
@@ -77,7 +77,7 @@ def respond(message, history): # Generate a response using the most relevant tra
|
|
| 77 |
messages = [
|
| 78 |
{
|
| 79 |
"role": "system",
|
| 80 |
-
"content": f"You are a friendly travel agent. Base your response on {top_chunks}. Don't create anything, only take from our data.
|
| 81 |
},
|
| 82 |
{
|
| 83 |
"role": "user",
|
|
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
# STEP 2 FROM SEMANTIC SEARCH
|
| 9 |
+
with open("formatted_travel_tips.txt", "r", encoding="utf-8") as file:
|
| 10 |
travel_text = file.read()
|
| 11 |
|
| 12 |
# STEP 3 FROM SEMANTIC SEARCH
|
|
|
|
| 77 |
messages = [
|
| 78 |
{
|
| 79 |
"role": "system",
|
| 80 |
+
"content": f"You are a friendly travel agent. Base your response on {top_chunks}. Don't create anything, only take from our data. Help the customer to plan outfits for their vacation and etiquette for the country."
|
| 81 |
},
|
| 82 |
{
|
| 83 |
"role": "user",
|