gianb commited on
Commit
1aa4d61
·
1 Parent(s): 624c196

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -30,6 +30,7 @@ def summarize_and_speech(pdf_file):
30
  # Use a text-to-speech model to generate audio
31
  synthesiser = pipeline("text-to-speech", model='facebook/mms-tts-eng')
32
  tts_output = synthesiser(summary)
 
33
  audio_data = tts_output[0]["audio"]
34
 
35
  return summary, audio_data
 
30
  # Use a text-to-speech model to generate audio
31
  synthesiser = pipeline("text-to-speech", model='facebook/mms-tts-eng')
32
  tts_output = synthesiser(summary)
33
+ print(tts_output)
34
  audio_data = tts_output[0]["audio"]
35
 
36
  return summary, audio_data