Spaces:
Sleeping
Sleeping
Commit ·
d8a12d0
1
Parent(s): 14cc4b4
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,12 +100,12 @@ def model_data(model_name):
|
|
| 100 |
|
| 101 |
def load_hubert():
|
| 102 |
global hubert_model
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
|
| 108 |
-
hubert_model = HubertModel.from_pretrained("Dprogrammer/tts_vrc")
|
| 109 |
# hubert_model = models[0]
|
| 110 |
hubert_model = hubert_model.to(config.device)
|
| 111 |
if config.is_half:
|
|
|
|
| 100 |
|
| 101 |
def load_hubert():
|
| 102 |
global hubert_model
|
| 103 |
+
models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
|
| 104 |
+
["hubert_base.pt"],
|
| 105 |
+
suffix="",
|
| 106 |
+
)
|
| 107 |
|
| 108 |
+
# hubert_model = HubertModel.from_pretrained("Dprogrammer/tts_vrc")
|
| 109 |
# hubert_model = models[0]
|
| 110 |
hubert_model = hubert_model.to(config.device)
|
| 111 |
if config.is_half:
|