Reyad-Ahmmed commited on
Commit
186ab62
·
verified ·
1 Parent(s): 511b9fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -104,7 +104,7 @@ if (runModel=='1'):
104
  # Create an instance of the custom loss function
105
  training_args = TrainingArguments(
106
  output_dir='./results_' + modelNameToUse,
107
- num_train_epochs=1,
108
  per_device_train_batch_size=2,
109
  per_device_eval_batch_size=2,
110
  warmup_steps=500,
@@ -131,10 +131,7 @@ if (runModel=='1'):
131
  label_mapping = {
132
  0: "lastmonth",
133
  1: "nextweek",
134
- 2: "sevendays",
135
- 3: "today",
136
- 4: "tomorrow",
137
- 5: "yesterday"
138
 
139
  }
140
 
@@ -255,10 +252,7 @@ else:
255
  label_mapping = {
256
  0: "lastmonth",
257
  1: "nextweek",
258
- 2: "sevendays",
259
- 3: "today",
260
- 4: "tomorrow",
261
- 5: "yesterday"
262
  }
263
 
264
 
 
104
  # Create an instance of the custom loss function
105
  training_args = TrainingArguments(
106
  output_dir='./results_' + modelNameToUse,
107
+ num_train_epochs=25,
108
  per_device_train_batch_size=2,
109
  per_device_eval_batch_size=2,
110
  warmup_steps=500,
 
131
  label_mapping = {
132
  0: "lastmonth",
133
  1: "nextweek",
134
+ 2: "sevendays"
 
 
 
135
 
136
  }
137
 
 
252
  label_mapping = {
253
  0: "lastmonth",
254
  1: "nextweek",
255
+ 2: "sevendays"
 
 
 
256
  }
257
 
258