Spaces:
Sleeping
Sleeping
Fix build (#1)
Browse files- Increase GPU duration to 10 minutes for longer audio generation (f44437d46e7943a08a4f619eb639f9311a4f7da3)
- Remove deprecated show_api parameter from launch() (91c04b7ee2cedef8d840a269e24c421e7a42ae79)
app.py
CHANGED
|
@@ -18,7 +18,7 @@ pipelines = {lang_code: KPipeline(lang_code=lang_code, model=False) for lang_cod
|
|
| 18 |
pipelines['a'].g2p.lexicon.golds['kokoro'] = 'kˈOkəɹO'
|
| 19 |
pipelines['b'].g2p.lexicon.golds['kokoro'] = 'kˈQkəɹQ'
|
| 20 |
|
| 21 |
-
@spaces.GPU(duration=
|
| 22 |
def forward_gpu(ps, ref_s, speed):
|
| 23 |
return models[True](ps, ref_s, speed)
|
| 24 |
|
|
@@ -199,4 +199,4 @@ with gr.Blocks() as app:
|
|
| 199 |
predict_btn.click(fn=predict, inputs=[text, voice, speed], outputs=[out_audio], api_name=API_NAME)
|
| 200 |
|
| 201 |
if __name__ == '__main__':
|
| 202 |
-
app.queue(api_open=API_OPEN).launch(
|
|
|
|
| 18 |
pipelines['a'].g2p.lexicon.golds['kokoro'] = 'kˈOkəɹO'
|
| 19 |
pipelines['b'].g2p.lexicon.golds['kokoro'] = 'kˈQkəɹQ'
|
| 20 |
|
| 21 |
+
@spaces.GPU(duration=600)
|
| 22 |
def forward_gpu(ps, ref_s, speed):
|
| 23 |
return models[True](ps, ref_s, speed)
|
| 24 |
|
|
|
|
| 199 |
predict_btn.click(fn=predict, inputs=[text, voice, speed], outputs=[out_audio], api_name=API_NAME)
|
| 200 |
|
| 201 |
if __name__ == '__main__':
|
| 202 |
+
app.queue(api_open=API_OPEN).launch(ssr_mode=True)
|