Spaces:
Paused
Paused
lengyue233
commited on
Commit
•
5b8d983
1
Parent(s):
a1f69ad
set default prompt to none
Browse files
app.py
CHANGED
@@ -82,6 +82,7 @@ def inference(
|
|
82 |
return None, "Text is too long, please keep it under 1000 characters."
|
83 |
|
84 |
# Parse reference audio aka prompt
|
|
|
85 |
if enable_reference_audio and reference_audio is not None:
|
86 |
# reference_audio_sr, reference_audio_content = reference_audio
|
87 |
reference_audio_content, _ = librosa.load(
|
|
|
82 |
return None, "Text is too long, please keep it under 1000 characters."
|
83 |
|
84 |
# Parse reference audio aka prompt
|
85 |
+
prompt_tokens = None
|
86 |
if enable_reference_audio and reference_audio is not None:
|
87 |
# reference_audio_sr, reference_audio_content = reference_audio
|
88 |
reference_audio_content, _ = librosa.load(
|