Kevin Fink commited on
Commit
657012a
·
1 Parent(s): e188ffb
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -237,7 +237,7 @@ def fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size
237
  #if os.path.exists(training_args.output_dir) and os.listdir(training_args.output_dir):
238
  #train_result = trainer.train(resume_from_checkpoint=True)
239
  #else:
240
- train_result = trainer.train()
241
  trainer.push_to_hub(commit_message="Training complete!")
242
  except Exception as e:
243
  return f"An error occurred: {str(e)}, TB: {traceback.format_exc()}"
 
237
  #if os.path.exists(training_args.output_dir) and os.listdir(training_args.output_dir):
238
  #train_result = trainer.train(resume_from_checkpoint=True)
239
  #else:
240
+ train_result = trainer.evaluate()
241
  trainer.push_to_hub(commit_message="Training complete!")
242
  except Exception as e:
243
  return f"An error occurred: {str(e)}, TB: {traceback.format_exc()}"