Spaces:
Running
Running
tianfengping.tfp
commited on
Commit
·
9dfd458
1
Parent(s):
f904f8b
excellent
Browse files
app.py
CHANGED
|
@@ -270,6 +270,7 @@ def generate_speech_sft(tts_text, speed, speaker, key, ref_audio, ref_text):
|
|
| 270 |
# Ensure assets are loaded
|
| 271 |
if assets_dir is None:
|
| 272 |
load_assets()
|
|
|
|
| 273 |
if audio_prompt_path is None or assets_dir is None:
|
| 274 |
raise ValueError("Audio prompt path is not available. Please wait a moment and try again, or provide reference audio and text.")
|
| 275 |
ref_text = text_prompt.get(speaker, "")
|
|
|
|
| 270 |
# Ensure assets are loaded
|
| 271 |
if assets_dir is None:
|
| 272 |
load_assets()
|
| 273 |
+
audio_prompt_path = assets_dir
|
| 274 |
if audio_prompt_path is None or assets_dir is None:
|
| 275 |
raise ValueError("Audio prompt path is not available. Please wait a moment and try again, or provide reference audio and text.")
|
| 276 |
ref_text = text_prompt.get(speaker, "")
|