eHemink commited on
Commit
90b7044
1 Parent(s): 0ac3cdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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})
80
  return (speech["sampling_rate"], speech["audio"])
81
 
82
 
@@ -85,5 +85,6 @@ def abstract_to_audio(insert_pdf):
85
 
86
 
87
  my_app = gr.Interface(fn=abstract_to_audio, inputs='file', outputs='audio', title="PDF Abstract Summarizer",
88
- description="Extracts abstracts from PDFs and generates audio summaries. This app only accepts PDFs with abstracts.")
 
89
  my_app.launch()
 
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
 
82
 
 
85
 
86
 
87
  my_app = gr.Interface(fn=abstract_to_audio, inputs='file', outputs='audio', title="PDF Abstract Summarizer",
88
+ description="Extracts abstracts from PDFs and generates audio summaries. This app only accepts PDFs with abstracts.", examples=["files/Article 11 Hidden Technical Debt in Machine Learning Systems", "files/
89
+ Article 6 BloombergGPT_ A Large Language Model for Finance"])
90
  my_app.launch()