Upload app.py
Browse files
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.
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
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 |
|