Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
from gtts import gTTS
|
| 2 |
import gtts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# importer gradio
|
| 4 |
import gradio as gr
|
| 5 |
import joblib
|
|
|
|
| 1 |
from gtts import gTTS
|
| 2 |
import gtts
|
| 3 |
+
# Import pipeline
|
| 4 |
+
from transformers import pipeline
|
| 5 |
+
# Faire un loading du modèle
|
| 6 |
+
narrator_en = pipeline("text-to-speech", model="facebook/mms-tts-eng" )
|
| 7 |
+
# Faire un loading du modèle
|
| 8 |
+
narrator_fr = pipeline("text-to-speech", model="facebook/mms-tts-fra")
|
| 9 |
# importer gradio
|
| 10 |
import gradio as gr
|
| 11 |
import joblib
|