Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -600,7 +600,9 @@ def init_training():
|
|
600 |
|
601 |
@spaces.GPU
|
602 |
def init_Starting():
|
603 |
-
|
|
|
|
|
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,
|