Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,9 @@ import torch
|
|
8 |
api_key =os.environ.get("id_gmkey")
|
9 |
token=os.environ.get("key_")
|
10 |
genai.configure(api_key=api_key)
|
11 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
12 |
#device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
-
model_vits=VitsModel.from_pretrained("
|
14 |
model_vits.decoder.apply_weight_norm()
|
15 |
# torch.nn.utils.weight_norm(self.decoder.conv_pre)
|
16 |
# torch.nn.utils.weight_norm(self.decoder.conv_post)
|
|
|
8 |
api_key =os.environ.get("id_gmkey")
|
9 |
token=os.environ.get("key_")
|
10 |
genai.configure(api_key=api_key)
|
11 |
+
tokenizer = AutoTokenizer.from_pretrained("wasmdashai/vits-ar-sa-huba",token=token)
|
12 |
#device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
+
model_vits=VitsModel.from_pretrained("wasmdashai/vits-ar-sa-huba",token=token)#.to(device)
|
14 |
model_vits.decoder.apply_weight_norm()
|
15 |
# torch.nn.utils.weight_norm(self.decoder.conv_pre)
|
16 |
# torch.nn.utils.weight_norm(self.decoder.conv_post)
|