Spaces:
Paused
Paused
Remove info parameters for Gradio 4.0.0 compatibility
Browse files
app.py
CHANGED
|
@@ -225,8 +225,7 @@ def create_gradio_interface():
|
|
| 225 |
model_dropdown = gr.Dropdown(
|
| 226 |
choices=["zipvoice", "zipvoice_distill"],
|
| 227 |
value="zipvoice",
|
| 228 |
-
label="Model"
|
| 229 |
-
info="zipvoice_distill is faster but slightly less accurate"
|
| 230 |
)
|
| 231 |
|
| 232 |
speed_slider = gr.Slider(
|
|
@@ -234,22 +233,19 @@ def create_gradio_interface():
|
|
| 234 |
maximum=2.0,
|
| 235 |
value=1.0,
|
| 236 |
step=0.1,
|
| 237 |
-
label="Speed"
|
| 238 |
-
info="1.0 = normal speed, >1.0 = faster, <1.0 = slower"
|
| 239 |
)
|
| 240 |
|
| 241 |
prompt_audio = gr.File(
|
| 242 |
label="Prompt Audio",
|
| 243 |
file_types=["audio"],
|
| 244 |
-
type="binary"
|
| 245 |
-
info="Upload a short audio clip (1-3 seconds recommended) to mimic the voice style"
|
| 246 |
)
|
| 247 |
|
| 248 |
prompt_text = gr.Textbox(
|
| 249 |
label="Prompt Transcription",
|
| 250 |
placeholder="Enter the exact transcription of the prompt audio...",
|
| 251 |
-
lines=2
|
| 252 |
-
info="This should match what is spoken in the audio file"
|
| 253 |
)
|
| 254 |
|
| 255 |
generate_btn = gr.Button(
|
|
|
|
| 225 |
model_dropdown = gr.Dropdown(
|
| 226 |
choices=["zipvoice", "zipvoice_distill"],
|
| 227 |
value="zipvoice",
|
| 228 |
+
label="Model"
|
|
|
|
| 229 |
)
|
| 230 |
|
| 231 |
speed_slider = gr.Slider(
|
|
|
|
| 233 |
maximum=2.0,
|
| 234 |
value=1.0,
|
| 235 |
step=0.1,
|
| 236 |
+
label="Speed"
|
|
|
|
| 237 |
)
|
| 238 |
|
| 239 |
prompt_audio = gr.File(
|
| 240 |
label="Prompt Audio",
|
| 241 |
file_types=["audio"],
|
| 242 |
+
type="binary"
|
|
|
|
| 243 |
)
|
| 244 |
|
| 245 |
prompt_text = gr.Textbox(
|
| 246 |
label="Prompt Transcription",
|
| 247 |
placeholder="Enter the exact transcription of the prompt audio...",
|
| 248 |
+
lines=2
|
|
|
|
| 249 |
)
|
| 250 |
|
| 251 |
generate_btn = gr.Button(
|