Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,10 @@ import gradio as gr
|
|
| 8 |
import os, re
|
| 9 |
import shutil
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
first_model = pipeline(task='summarization',model='pszemraj/long-t5-tglobal-base-16384-book-summary')
|
| 12 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
| 13 |
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|
|
|
|
| 8 |
import os, re
|
| 9 |
import shutil
|
| 10 |
|
| 11 |
+
import os
|
| 12 |
+
path = '/tmp/gradio/tmp1biredw9'
|
| 13 |
+
os.makedirs(path, exist_ok=True)
|
| 14 |
+
|
| 15 |
first_model = pipeline(task='summarization',model='pszemraj/long-t5-tglobal-base-16384-book-summary')
|
| 16 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
| 17 |
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|