Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -273,16 +273,6 @@ print(summarized_text)
|
|
273 |
# number_of_sentences-=1
|
274 |
#print(summarized_text_list_list)
|
275 |
#print(number_of_sentences)
|
276 |
-
# Step 2: Text to Speech (TTS)
|
277 |
-
from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech
|
278 |
-
|
279 |
-
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
280 |
-
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|
281 |
-
|
282 |
-
# Convert summarized text to speech
|
283 |
-
inputs = processor(summarized_text, return_tensors="pt")
|
284 |
-
spectrogram = model.generate_speech(inputs["input_ids"])
|
285 |
-
|
286 |
|
287 |
|
288 |
|
|
|
273 |
# number_of_sentences-=1
|
274 |
#print(summarized_text_list_list)
|
275 |
#print(number_of_sentences)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
|
277 |
|
278 |
|