englissi commited on
Commit
aa294bf
1 Parent(s): ff0d330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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