Clint Adams
commited on
Commit
•
13973ae
1
Parent(s):
1cd136f
disable example-caching if run on cpu
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ DEBUG_MODE = False
|
|
11 |
if not DEBUG_MODE:
|
12 |
_ = preload_models()
|
13 |
|
14 |
-
default_text = "This is a fork of Suno's Bark
|
15 |
|
16 |
title = "# 🐶 Bark (with user-supplied voices)</div>"
|
17 |
|
@@ -188,7 +188,7 @@ with gr.Blocks(css=css) as block:
|
|
188 |
inputs = [input_text, options]
|
189 |
outputs = [audio_out]
|
190 |
gr.Examples(examples=examples, fn=gen_tts, inputs=inputs,
|
191 |
-
outputs=outputs, cache_examples=True)
|
192 |
gr.Markdown(article)
|
193 |
run_button.click(fn=lambda: gr.update(visible=False), inputs=None, outputs=share_row, queue=False).then(
|
194 |
fn=gen_tts, inputs=inputs, outputs=outputs, queue=True).then(
|
|
|
11 |
if not DEBUG_MODE:
|
12 |
_ = preload_models()
|
13 |
|
14 |
+
default_text = "This is a fork of Suno's Bark Space that allows you to supply your own voice."
|
15 |
|
16 |
title = "# 🐶 Bark (with user-supplied voices)</div>"
|
17 |
|
|
|
188 |
inputs = [input_text, options]
|
189 |
outputs = [audio_out]
|
190 |
gr.Examples(examples=examples, fn=gen_tts, inputs=inputs,
|
191 |
+
outputs=outputs, cache_examples=True if device=='cuda' else False)
|
192 |
gr.Markdown(article)
|
193 |
run_button.click(fn=lambda: gr.update(visible=False), inputs=None, outputs=share_row, queue=False).then(
|
194 |
fn=gen_tts, inputs=inputs, outputs=outputs, queue=True).then(
|