Commit
·
416f659
1
Parent(s):
07b3917
remove info loading audio prompt, reduce time of info generated audio to 10 secs
Browse files- event_handlers.py +2 -2
event_handlers.py
CHANGED
@@ -350,7 +350,7 @@ def generate_batch_audio(
|
|
350 |
|
351 |
bark_prompt = None
|
352 |
if selected_prompt_name != "None":
|
353 |
-
gr.Info("Loading audio prompt...")
|
354 |
prompt_path = os.path.join(PROMPT_DIR, selected_prompt_name)
|
355 |
bark_prompt = BarkPrompt.load_prompt(
|
356 |
prompt_path, torch.device("cpu")
|
@@ -366,7 +366,7 @@ def generate_batch_audio(
|
|
366 |
# split the text into sentences
|
367 |
sentences = text.split("\n")
|
368 |
|
369 |
-
gr.Info("Generating Audio....", duration=
|
370 |
waves = generate_audio(
|
371 |
texts=sentences,
|
372 |
prompt=bark_prompt,
|
|
|
350 |
|
351 |
bark_prompt = None
|
352 |
if selected_prompt_name != "None":
|
353 |
+
# gr.Info("Loading audio prompt...")
|
354 |
prompt_path = os.path.join(PROMPT_DIR, selected_prompt_name)
|
355 |
bark_prompt = BarkPrompt.load_prompt(
|
356 |
prompt_path, torch.device("cpu")
|
|
|
366 |
# split the text into sentences
|
367 |
sentences = text.split("\n")
|
368 |
|
369 |
+
gr.Info("Generating Audio....", duration=10)
|
370 |
waves = generate_audio(
|
371 |
texts=sentences,
|
372 |
prompt=bark_prompt,
|