Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -113,15 +113,7 @@ if (runModel=='1'):
|
|
113 |
evaluation_strategy="epoch",
|
114 |
|
115 |
)
|
116 |
-
|
117 |
-
upload_folder(
|
118 |
-
folder_path=training_args.output_dir,
|
119 |
-
path_in_repo=f"{modelNameToUse}_results",
|
120 |
-
repo_id=repo_name,
|
121 |
-
token=api_token,
|
122 |
-
commit_message="Upload training results"
|
123 |
-
)
|
124 |
-
|
125 |
trainer = Trainer(
|
126 |
model=model,
|
127 |
args=training_args,
|
@@ -185,9 +177,6 @@ if (runModel=='1'):
|
|
185 |
tokenizer.save_pretrained('./' + modelNameToUse + '_tokenizer')
|
186 |
|
187 |
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
|
192 |
else:
|
193 |
print('Load Pre-trained')
|
|
|
113 |
evaluation_strategy="epoch",
|
114 |
|
115 |
)
|
116 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
trainer = Trainer(
|
118 |
model=model,
|
119 |
args=training_args,
|
|
|
177 |
tokenizer.save_pretrained('./' + modelNameToUse + '_tokenizer')
|
178 |
|
179 |
|
|
|
|
|
|
|
180 |
|
181 |
else:
|
182 |
print('Load Pre-trained')
|