wasmdashai commited on
Commit
ad16f6e
·
verified ·
1 Parent(s): 2835be9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -600,7 +600,9 @@ def init_training():
600
 
601
  @spaces.GPU
602
  def init_Starting():
603
- globals pro
 
 
604
  pro=TrinerModelVITS(dir_model=dir_model,
605
  path_training_args='VitsModelSplit/finetune_config_ara.json',
606
  train_dataset_dirs = train_dataset_dirs,
 
600
 
601
  @spaces.GPU
602
  def init_Starting():
603
+ global pro
604
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
605
+
606
  pro=TrinerModelVITS(dir_model=dir_model,
607
  path_training_args='VitsModelSplit/finetune_config_ara.json',
608
  train_dataset_dirs = train_dataset_dirs,