Omnibus commited on
Commit
eb278b4
1 Parent(s): 4ec2aff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -35,9 +35,8 @@ def run_bark(text, n, lang):
35
  **inputs, coarse_temperature = 0.8, temperature = 0.5, do_sample=True
36
  )
37
  #speech_values = model.generate(**inputs, do_sample=True)
38
- #sampling_rate = model.generation_config.sample_rate
39
 
40
- sampling_rate = model.config.sample_rate
41
  #sampling_rate = 24_000
42
  print("writing")
43
  scipy.io.wavfile.write("bark_out.wav", rate=sampling_rate, data=speech_values.cpu().numpy().squeeze())
 
35
  **inputs, coarse_temperature = 0.8, temperature = 0.5, do_sample=True
36
  )
37
  #speech_values = model.generate(**inputs, do_sample=True)
38
+ sampling_rate = model.generation_config.sample_rate
39
 
 
40
  #sampling_rate = 24_000
41
  print("writing")
42
  scipy.io.wavfile.write("bark_out.wav", rate=sampling_rate, data=speech_values.cpu().numpy().squeeze())