wasmdashai commited on
Commit
e8f1875
·
verified ·
1 Parent(s): 437c265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -477,7 +477,9 @@ class TrinerModelVITS:
477
  #config = self.training_args.to_dict()
478
  wandb.init(project= 'HugfaceTraining')
479
 
480
-
 
 
481
  def load_dataset(self,train_dataset_dirs,eval_dataset_dir,full_generation_dir):
482
  ctrain_datasets,eval_dataset,full_generation_dataset=get_data_loader(train_dataset_dirs = train_dataset_dirs,
483
  eval_dataset_dir =eval_dataset_dir ,
@@ -669,7 +671,8 @@ def init_Starting():
669
  def init_wandb():
670
  pro.init_wandb()
671
  return 'init_wandb'
672
-
 
673
  def save_pretrained(path):
674
  pro.save_pretrained(path)
675
 
 
477
  #config = self.training_args.to_dict()
478
  wandb.init(project= 'HugfaceTraining')
479
 
480
+ def load_modell(self,namemodel):
481
+ self.model=VitsModel.from_pretrained(namemodel,token=self.token).to(self.device)
482
+ return "true"
483
  def load_dataset(self,train_dataset_dirs,eval_dataset_dir,full_generation_dir):
484
  ctrain_datasets,eval_dataset,full_generation_dataset=get_data_loader(train_dataset_dirs = train_dataset_dirs,
485
  eval_dataset_dir =eval_dataset_dir ,
 
671
  def init_wandb():
672
  pro.init_wandb()
673
  return 'init_wandb'
674
+ def loadd_d():
675
+ pro.load_modell("wasmdashai/vits-ar-sa-huba")
676
  def save_pretrained(path):
677
  pro.save_pretrained(path)
678