Abdulla Fahem commited on
Commit
23d2d4b
·
1 Parent(s): 7bdf2e1

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,7 +88,7 @@ class TravelDataset(Dataset):
88
  This method creates a prompt that the model will use to generate a travel plan
89
  """
90
  # Format the input text based on available columns
91
- destination = row.get('destination', 'Unknown')
92
  days = row.get('days', 3)
93
  budget = row.get('budget', 'Moderate')
94
  interests = row.get('interests', 'Culture, Food')
@@ -107,7 +107,7 @@ def load_dataset():
107
  data = pd.read_csv("hf://datasets/osunlp/TravelPlanner/train.csv")
108
 
109
  # Basic data validation
110
- required_columns = ['destination', 'days', 'budget', 'interests', 'target']
111
  for col in required_columns:
112
  if col not in data.columns:
113
  raise ValueError(f"Missing required column: {col}")
 
88
  This method creates a prompt that the model will use to generate a travel plan
89
  """
90
  # Format the input text based on available columns
91
+ destination = row.get('dest', 'Unknown')
92
  days = row.get('days', 3)
93
  budget = row.get('budget', 'Moderate')
94
  interests = row.get('interests', 'Culture, Food')
 
107
  data = pd.read_csv("hf://datasets/osunlp/TravelPlanner/train.csv")
108
 
109
  # Basic data validation
110
+ required_columns = ['dest', 'days', 'budget', 'interests', 'target']
111
  for col in required_columns:
112
  if col not in data.columns:
113
  raise ValueError(f"Missing required column: {col}")