Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,12 @@ from transformers import AutoTokenizer
|
|
4 |
import torch
|
5 |
import os
|
6 |
from VitsModelSplit.vits_model2 import VitsModel,get_state_grad_loss
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
token=os.environ.get("key_")
|
9 |
tokenizer = AutoTokenizer.from_pretrained("wasmdashai/vits-ar-sa-huba",token=token)
|
|
|
4 |
import torch
|
5 |
import os
|
6 |
from VitsModelSplit.vits_model2 import VitsModel,get_state_grad_loss
|
7 |
+
%cd VitsModelSplit # If you restart runtime
|
8 |
+
%cd monotonic_align
|
9 |
+
|
10 |
+
!python setup.py build_ext --inplace
|
11 |
+
%cd ..
|
12 |
+
%cd ..
|
13 |
|
14 |
token=os.environ.get("key_")
|
15 |
tokenizer = AutoTokenizer.from_pretrained("wasmdashai/vits-ar-sa-huba",token=token)
|