Spaces:
Runtime error
Runtime error
Commit
·
b7c6f09
1
Parent(s):
19020ff
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def predict_with_prompt(text_prompt, speaker_prompt):
|
|
| 15 |
if len(text_prompt.strip()) == 0:
|
| 16 |
return (16000, np.zeros(0).astype(np.int16))
|
| 17 |
|
| 18 |
-
prompt_path = os.path.join(os.getcwd(), "
|
| 19 |
semantic_history = np.load(prompt_path)["semantic_prompt"]
|
| 20 |
|
| 21 |
prompt_array = semantic_to_waveform(semantic_history)
|
|
|
|
| 15 |
if len(text_prompt.strip()) == 0:
|
| 16 |
return (16000, np.zeros(0).astype(np.int16))
|
| 17 |
|
| 18 |
+
prompt_path = os.path.join(os.getcwd(), "assets", "prompts", f"speech_{speaker_prompt}.npz")
|
| 19 |
semantic_history = np.load(prompt_path)["semantic_prompt"]
|
| 20 |
|
| 21 |
prompt_array = semantic_to_waveform(semantic_history)
|