aditibera commited on
Commit
ae75966
·
verified ·
1 Parent(s): 3f4823d

updated data and content

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("destinations.txt", "r", encoding="utf-8") as file:
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. When choosing a country as a response send the top three countries that have the highest rating in order for the users given category"
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",