Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|