Prgckwb commited on
Commit
574f7ec
1 Parent(s): 96b8e56

change theme

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -3,10 +3,10 @@ import os
3
  import gradio as gr
4
  import nltk
5
 
6
- os.system("python -m unidic download")
7
  from melo.api import TTS # noqa: E402
8
 
9
- nltk.download("averaged_perceptron_tagger_eng")
10
 
11
  # Get device
12
  device = "auto"
@@ -23,6 +23,11 @@ def inference(
23
 
24
 
25
  if __name__ == "__main__":
 
 
 
 
 
26
  demo = gr.Interface(
27
  title="Text-to-Speech",
28
  description="Convert English text to speech",
@@ -47,5 +52,6 @@ if __name__ == "__main__":
47
  ],
48
  ],
49
  cache_examples=False,
 
50
  )
51
  demo.queue().launch()
 
3
  import gradio as gr
4
  import nltk
5
 
6
+ # os.system("python -m unidic download")
7
  from melo.api import TTS # noqa: E402
8
 
9
+ # nltk.download("averaged_perceptron_tagger_eng")
10
 
11
  # Get device
12
  device = "auto"
 
23
 
24
 
25
  if __name__ == "__main__":
26
+ theme = gr.themes.Soft(
27
+ primary_hue=gr.themes.colors.emerald,
28
+ secondary_hue=gr.themes.colors.emerald
29
+ )
30
+
31
  demo = gr.Interface(
32
  title="Text-to-Speech",
33
  description="Convert English text to speech",
 
52
  ],
53
  ],
54
  cache_examples=False,
55
+ theme=theme
56
  )
57
  demo.queue().launch()