eHemink commited on
Commit
0ac3cdc
·
1 Parent(s): b4b5c4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ def abstract_to_audio(insert_pdf):
76
  #return (SAMPLE_RATE, audio_array)
77
 
78
  tss_pipeline = pipeline("text-to-speech", "suno/bark-small")
79
- speech = tss_pipeline(tss_prompt, forward_params={"do_sample": True}, pad_token_id=tss_pipeline.tokenizer.eos_token_id)
80
  return (speech["sampling_rate"], speech["audio"])
81
 
82
 
 
76
  #return (SAMPLE_RATE, audio_array)
77
 
78
  tss_pipeline = pipeline("text-to-speech", "suno/bark-small")
79
+ speech = tss_pipeline(tss_prompt, forward_params={"do_sample": True})
80
  return (speech["sampling_rate"], speech["audio"])
81
 
82