Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
|
|
3 |
from bark import SAMPLE_RATE, generate_audio, preload_models
|
4 |
from bark.generation import SUPPORTED_LANGS
|
5 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
|
|
6 |
|
7 |
DEBUG_MODE = False
|
8 |
|
@@ -116,7 +117,7 @@ examples = [
|
|
116 |
"Speaker 0 (es)"], # , 0.7, 0.7],
|
117 |
]
|
118 |
|
119 |
-
|
120 |
def gen_tts(text, history_prompt): # , temp_semantic, temp_waveform):
|
121 |
history_prompt = PROMPT_LOOKUP[history_prompt]
|
122 |
if DEBUG_MODE:
|
|
|
3 |
from bark import SAMPLE_RATE, generate_audio, preload_models
|
4 |
from bark.generation import SUPPORTED_LANGS
|
5 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
6 |
+
import spaces
|
7 |
|
8 |
DEBUG_MODE = False
|
9 |
|
|
|
117 |
"Speaker 0 (es)"], # , 0.7, 0.7],
|
118 |
]
|
119 |
|
120 |
+
@spaces.GPU
|
121 |
def gen_tts(text, history_prompt): # , temp_semantic, temp_waveform):
|
122 |
history_prompt = PROMPT_LOOKUP[history_prompt]
|
123 |
if DEBUG_MODE:
|