Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
GK=0
|
3 |
-
from transformers import AutoTokenizer
|
4 |
import torch
|
5 |
import os
|
|
|
|
|
6 |
token=os.environ.get("key_")
|
7 |
tokenizer = AutoTokenizer.from_pretrained("wasmdashai/vits-ar-sa-huba",token=token)
|
8 |
#device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
1 |
import gradio as gr
|
2 |
GK=0
|
3 |
+
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)
|
10 |
#device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|