TheHuriShow commited on
Commit
468fedf
·
verified ·
1 Parent(s): 58a77da

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,12 +46,13 @@ def get_recommendations_and_generate(query_text, k=3):
46
  idx = int(idx_numpy)
47
  trip_plan = {
48
  "dest": dataset['test']['dest'][idx],
 
49
  "reference_information": dataset['test']['reference_information'][idx]
50
  }
51
  results.append(trip_plan)
52
 
53
  while len(results) < 3:
54
- results.append({"dest": "No trip plan found", "reference_information": ""})
55
 
56
  # 2. Create a prompt for the generative model
57
  prompt = f"Write a complete travel plan that includes a title and a day-by-day itinerary. The trip must be about: {query_text}."
 
46
  idx = int(idx_numpy)
47
  trip_plan = {
48
  "dest": dataset['test']['dest'][idx],
49
+ "day": dataset['test']['day'][idx],
50
  "reference_information": dataset['test']['reference_information'][idx]
51
  }
52
  results.append(trip_plan)
53
 
54
  while len(results) < 3:
55
+ results.append({"dest": "No trip plan found", "day":"", "reference_information": ""})
56
 
57
  # 2. Create a prompt for the generative model
58
  prompt = f"Write a complete travel plan that includes a title and a day-by-day itinerary. The trip must be about: {query_text}."