Spaces:
Runtime error
Runtime error
Peter Michael Gits commited on
Commit ·
9cfa211
1
Parent(s): 8cdbef1
fix: Add api_name parameter to main prediction function for proper API endpoint
Browse files
app.py
CHANGED
|
@@ -286,11 +286,12 @@ with gr.Blocks(
|
|
| 286 |
label="🎯 ZeroGPU Examples"
|
| 287 |
)
|
| 288 |
|
| 289 |
-
# Event handlers
|
| 290 |
synthesize_btn.click(
|
| 291 |
fn=synthesize_speech,
|
| 292 |
inputs=[text_input, voice_dropdown],
|
| 293 |
-
outputs=[audio_output, status_output]
|
|
|
|
| 294 |
)
|
| 295 |
|
| 296 |
clear_btn.click(
|
|
|
|
| 286 |
label="🎯 ZeroGPU Examples"
|
| 287 |
)
|
| 288 |
|
| 289 |
+
# Event handlers with API names
|
| 290 |
synthesize_btn.click(
|
| 291 |
fn=synthesize_speech,
|
| 292 |
inputs=[text_input, voice_dropdown],
|
| 293 |
+
outputs=[audio_output, status_output],
|
| 294 |
+
api_name="predict"
|
| 295 |
)
|
| 296 |
|
| 297 |
clear_btn.click(
|