Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import random
|
2 |
import numpy as np
|
3 |
import torch
|
4 |
-
from chatterbox.src.
|
5 |
import gradio as gr
|
6 |
|
7 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
@@ -15,7 +15,7 @@ def set_seed(seed: int):
|
|
15 |
np.random.seed(seed)
|
16 |
|
17 |
|
18 |
-
model =
|
19 |
|
20 |
def generate(text, audio_prompt_path, exaggeration, pace, temperature, seed_num):
|
21 |
if seed_num != 0:
|
|
|
1 |
import random
|
2 |
import numpy as np
|
3 |
import torch
|
4 |
+
from chatterbox.src.orator.tts import OratorTTS
|
5 |
import gradio as gr
|
6 |
|
7 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
15 |
np.random.seed(seed)
|
16 |
|
17 |
|
18 |
+
model = OratorTTS.from_pretrained(DEVICE)
|
19 |
|
20 |
def generate(text, audio_prompt_path, exaggeration, pace, temperature, seed_num):
|
21 |
if seed_num != 0:
|