w1701 commited on
Commit
c347f1d
1 Parent(s): 0094b8f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -37
app.py CHANGED
@@ -134,45 +134,22 @@ with gr.Blocks() as lj:
134
  ljaudio = gr.Audio(interactive=False, label="Synthesized Audio")
135
  ljbtn.click(ljsynthesize, inputs=[ljinp, ljsteps], outputs=[ljaudio], concurrency_limit=4)
136
  with gr.Blocks(title="StyleTTS 2", css="footer{display:none !important}", theme=theme) as demo:
137
- gr.Markdown("""# StyleTTS 2
138
-
139
- [Paper](https://arxiv.org/abs/2306.07691) - [Samples](https://styletts2.github.io/) - [Code](https://github.com/yl4579/StyleTTS2)
140
-
141
- A free demo of StyleTTS 2. **I am not affiliated with the StyleTTS 2 Authors.**
142
-
143
- #### Help this space get to the top of HF's trending list! Please give this space a Like!
144
-
145
- **Before using this demo, you agree to inform the listeners that the speech samples are synthesized by the pre-trained models, unless you have the permission to use the voice you synthesize. That is, you agree to only use voices whose speakers grant the permission to have their voice cloned, either directly or by license before making synthesized voices public, or you have to publicly announce that these voices are synthesized if you do not have the permission to use these voices.**
146
-
147
- Is there a long queue on this space? Duplicate it and add a more powerful GPU to skip the wait! **Note: Thank you to Hugging Face for their generous GPU grant program!**
148
-
149
- **NOTE: StyleTTS 2 does better on longer texts.** For example, making it say "hi" will produce a lower-quality result than making it say a longer phrase.""")
150
- gr.DuplicateButton("Duplicate Space")
151
- gr.HTML("""<script async src="https://www.googletagmanager.com/gtag/js?id=G-KP5GWL8NN5"></script>
152
- <script>
153
- window.dataLayer = window.dataLayer || [];
154
- function gtag(){dataLayer.push(arguments);}
155
- gtag('js', new Date());
156
- gtag('config', 'G-KP5GWL8NN5');
157
- </script>
158
- <script type="text/javascript">
159
- (function(c,l,a,r,i,t,y){
160
- c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
161
- t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
162
- y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
163
- })(window, document, "clarity", "script", "jydi4lprw6");
164
- </script>""")
165
  # gr.TabbedInterface([vctk, clone, lj, longText], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
166
  gr.TabbedInterface([vctk, clone, lj], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
167
- gr.Markdown("""
168
- Demo by [mrfakename](https://twitter.com/realmrfakename). I am not affiliated with the StyleTTS 2 authors.
169
-
170
- Run this demo locally using Docker:
171
-
172
- ```bash
173
- docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all registry.hf.space/styletts2-styletts2:latest python app.py
174
- ```
175
- """)
176
  if __name__ == "__main__":
177
  demo.queue(api_open=False, max_size=15).launch(show_api=False)
178
 
 
134
  ljaudio = gr.Audio(interactive=False, label="Synthesized Audio")
135
  ljbtn.click(ljsynthesize, inputs=[ljinp, ljsteps], outputs=[ljaudio], concurrency_limit=4)
136
  with gr.Blocks(title="StyleTTS 2", css="footer{display:none !important}", theme=theme) as demo:
137
+ gr.HTML("""<script async src="https://www.googletagmanager.com/gtag/js?id=G-RTMC15V61G"></script>
138
+ <script>
139
+ window.dataLayer = window.dataLayer || [];
140
+ function gtag(){dataLayer.push(arguments);}
141
+ gtag('js', new Date());
142
+ gtag('config', 'G-RTMC15V61G');
143
+ </script>
144
+ <script type="text/javascript">
145
+ (function(c,l,a,r,i,t,y){
146
+ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
147
+ t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
148
+ y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
149
+ })(window, document, "clarity", "script", "jydi4lprw6");
150
+ </script>""")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  # gr.TabbedInterface([vctk, clone, lj, longText], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
152
  gr.TabbedInterface([vctk, clone, lj], ['Multi-Voice', 'Voice Cloning', 'LJSpeech', 'Long Text [Beta]'])
 
 
 
 
 
 
 
 
 
153
  if __name__ == "__main__":
154
  demo.queue(api_open=False, max_size=15).launch(show_api=False)
155