eHemink commited on
Commit
8da2e1b
·
1 Parent(s): 5017bcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ Original file is located at
12
  # Here are the imports
13
  import PyPDF2
14
  import re
15
- import numpy as np
16
  import transformers
17
  import scipy
18
  from transformers import pipeline
@@ -75,7 +75,7 @@ def abstract_to_audio(insert_pdf):
75
  #audio_array = generate_audio(tss_prompt)
76
  #return (SAMPLE_RATE, audio_array)
77
 
78
- tss_pipeline = pipeline("text-to-speech", "suno/bark-small")
79
  speech = tss_pipeline(tss_prompt)
80
  return (speech["sampling_rate"], speech["audio"])
81
 
 
12
  # Here are the imports
13
  import PyPDF2
14
  import re
15
+ #import numpy as np
16
  import transformers
17
  import scipy
18
  from transformers import pipeline
 
75
  #audio_array = generate_audio(tss_prompt)
76
  #return (SAMPLE_RATE, audio_array)
77
 
78
+ tss_pipeline = pipeline("text-to-speech", "suno/bark")
79
  speech = tss_pipeline(tss_prompt)
80
  return (speech["sampling_rate"], speech["audio"])
81