Spaces:
Running
on
Zero
Running
on
Zero
[AUTOMATED] Migration to Gradio 6.0
#1
by
multimodalart
HF Staff
- opened
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 💨
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
short_description: Streaming conversational audio in realtime
|
|
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.0.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
short_description: Streaming conversational audio in realtime
|
app.py
CHANGED
|
@@ -149,9 +149,7 @@ def generate_audio(
|
|
| 149 |
|
| 150 |
|
| 151 |
def build_interface() -> gr.Blocks:
|
| 152 |
-
with gr.Blocks(
|
| 153 |
-
title="Dia2 TTS", css=".compact-turn textarea {min-height: 60px}"
|
| 154 |
-
) as demo:
|
| 155 |
gr.Markdown(
|
| 156 |
"""## Dia2 — Open TTS Model
|
| 157 |
Compose dialogue, attach optional voice prompts, and generate audio (CUDA graphs enabled by default)."""
|
|
@@ -261,4 +259,8 @@ Compose dialogue, attach optional voice prompts, and generate audio (CUDA graphs
|
|
| 261 |
if __name__ == "__main__":
|
| 262 |
app = build_interface()
|
| 263 |
app.queue(default_concurrency_limit=1)
|
| 264 |
-
app.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
|
| 151 |
def build_interface() -> gr.Blocks:
|
| 152 |
+
with gr.Blocks() as demo:
|
|
|
|
|
|
|
| 153 |
gr.Markdown(
|
| 154 |
"""## Dia2 — Open TTS Model
|
| 155 |
Compose dialogue, attach optional voice prompts, and generate audio (CUDA graphs enabled by default)."""
|
|
|
|
| 259 |
if __name__ == "__main__":
|
| 260 |
app = build_interface()
|
| 261 |
app.queue(default_concurrency_limit=1)
|
| 262 |
+
app.launch(
|
| 263 |
+
share=True,
|
| 264 |
+
title="Dia2 TTS",
|
| 265 |
+
css=".compact-turn textarea {min-height: 60px}"
|
| 266 |
+
)
|