Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def run_bark(text, lang="en", n=1):
|
|
17 |
return_tensors="pt",
|
18 |
)
|
19 |
|
20 |
-
speech_values = model.generate(**inputs, history_prompt=semantic_prompt, do_sample=True)
|
21 |
|
22 |
#sampling_rate = model.config.sample_rate
|
23 |
sampling_rate = 24000
|
|
|
17 |
return_tensors="pt",
|
18 |
)
|
19 |
|
20 |
+
speech_values = model.generate(**inputs, history_prompt=[semantic_prompt][0], do_sample=True)
|
21 |
|
22 |
#sampling_rate = model.config.sample_rate
|
23 |
sampling_rate = 24000
|