Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
from gradio import Dropdown
|
4 |
from scipy.io.wavfile import write
|
@@ -30,7 +30,7 @@ script_choices = {
|
|
30 |
"Random": "Grandma, I can’t find your email address. I need to send you something important."
|
31 |
}
|
32 |
}
|
33 |
-
|
34 |
|
35 |
|
36 |
def infer(prompt, input_wav_file, script_type,selected_theme):
|
|
|
1 |
+
from TTS.api import TTS
|
2 |
import gradio as gr
|
3 |
from gradio import Dropdown
|
4 |
from scipy.io.wavfile import write
|
|
|
30 |
"Random": "Grandma, I can’t find your email address. I need to send you something important."
|
31 |
}
|
32 |
}
|
33 |
+
tts = TTS("tts_models/multilingual/multi-dataset/bark", gpu=True)
|
34 |
|
35 |
|
36 |
def infer(prompt, input_wav_file, script_type,selected_theme):
|