Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,17 @@
|
|
|
|
|
|
1 |
# Install transformers if not installed
|
2 |
# !pip install transformers gradio
|
3 |
|
4 |
from transformers import pipeline
|
5 |
import gradio as gr
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Load a pre-trained TTS pipeline
|
8 |
tts_pipeline = pipeline("text-to-speech", model="facebook/fastspeech2-en-ljspeech")
|
9 |
|
|
|
1 |
+
|
2 |
+
|
3 |
# Install transformers if not installed
|
4 |
# !pip install transformers gradio
|
5 |
|
6 |
from transformers import pipeline
|
7 |
import gradio as gr
|
8 |
|
9 |
+
# Install transformers and gradio if not installed
|
10 |
+
import os
|
11 |
+
os.system('pip install transformers gradio')
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
# Load a pre-trained TTS pipeline
|
16 |
tts_pipeline = pipeline("text-to-speech", model="facebook/fastspeech2-en-ljspeech")
|
17 |
|