Pendrokar commited on
Commit
5622bbe
1 Parent(s): 6930378
Files changed (4) hide show
  1. app.py +3 -3
  2. compute.py +1 -0
  3. ljspeechimportable.py +1 -0
  4. styletts2importable.py +1 -0
app.py CHANGED
@@ -174,13 +174,13 @@ with gr.Blocks() as lj:
174
  ljbtn = gr.Button("Synthesize", variant="primary")
175
  ljaudio = gr.Audio(interactive=False, label="Synthesized Audio", waveform_options={'waveform_progress_color': '#3C82F6'})
176
  ljbtn.click(ljsynthesize, inputs=[ljinp, ljsteps], outputs=[ljaudio], concurrency_limit=4)
177
- with gr.Blocks(title="StyleTTS 2", css="footer{display:none !important}", theme=theme) as demo:
178
  gr.Markdown(INTROTXT)
179
  gr.DuplicateButton("Duplicate Space")
180
  # gr.TabbedInterface([vctk, clone, lj, longText], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
181
  gr.TabbedInterface([vctk, clone, lj], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
182
  gr.Markdown("""
183
- Demo by [mrfakename](https://twitter.com/realmrfakename). I am not affiliated with the StyleTTS 2 authors.
184
 
185
  Run this demo locally using Docker:
186
 
@@ -190,5 +190,5 @@ docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all registry.hf.space/
190
  """) # Please do not remove this line.
191
  if __name__ == "__main__":
192
  # demo.queue(api_open=False, max_size=15).launch(show_api=False)
193
- demo.queue(api_open=False, max_size=15).launch(show_api=False)
194
 
 
174
  ljbtn = gr.Button("Synthesize", variant="primary")
175
  ljaudio = gr.Audio(interactive=False, label="Synthesized Audio", waveform_options={'waveform_progress_color': '#3C82F6'})
176
  ljbtn.click(ljsynthesize, inputs=[ljinp, ljsteps], outputs=[ljaudio], concurrency_limit=4)
177
+ with gr.Blocks(title="StyleTTS 2", theme=theme) as demo:
178
  gr.Markdown(INTROTXT)
179
  gr.DuplicateButton("Duplicate Space")
180
  # gr.TabbedInterface([vctk, clone, lj, longText], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
181
  gr.TabbedInterface([vctk, clone, lj], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
182
  gr.Markdown("""
183
+ Original demo by [mrfakename](https://twitter.com/realmrfakename). Not affiliated with the StyleTTS 2 authors.
184
 
185
  Run this demo locally using Docker:
186
 
 
190
  """) # Please do not remove this line.
191
  if __name__ == "__main__":
192
  # demo.queue(api_open=False, max_size=15).launch(show_api=False)
193
+ demo.queue(api_open=True, max_size=15).launch(show_api=True)
194
 
compute.py CHANGED
@@ -4,6 +4,7 @@ from cached_path import cached_path
4
  print("NLTK")
5
  import nltk
6
  nltk.download('punkt')
 
7
  print("SCIPY")
8
  from scipy.io.wavfile import write
9
  print("TORCH STUFF")
 
4
  print("NLTK")
5
  import nltk
6
  nltk.download('punkt')
7
+ nltk.download('punkt_tab')
8
  print("SCIPY")
9
  from scipy.io.wavfile import write
10
  print("TORCH STUFF")
ljspeechimportable.py CHANGED
@@ -14,6 +14,7 @@ np.random.seed(0)
14
 
15
  import nltk
16
  nltk.download('punkt')
 
17
 
18
  # load packages
19
  import time
 
14
 
15
  import nltk
16
  nltk.download('punkt')
17
+ nltk.download('punkt_data')
18
 
19
  # load packages
20
  import time
styletts2importable.py CHANGED
@@ -6,6 +6,7 @@ from cached_path import cached_path
6
  print("NLTK")
7
  import nltk
8
  nltk.download('punkt')
 
9
  print("SCIPY")
10
  from scipy.io.wavfile import write
11
  print("TORCH STUFF")
 
6
  print("NLTK")
7
  import nltk
8
  nltk.download('punkt')
9
+ nltk.download('punkt_tab')
10
  print("SCIPY")
11
  from scipy.io.wavfile import write
12
  print("TORCH STUFF")