Omnibus commited on
Commit
67ec9cc
1 Parent(s): 93ee49a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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