Spaces:
Running on Zero
Running on Zero
electblake commited on
Commit ·
6e92dd9
1
Parent(s): 72b6c80
fix(api): preserve template preset endpoint
Browse filesKeep the public preset-selection API name stable after replacing its wrapper function with direct dictionary lookup.
app.py
CHANGED
|
@@ -315,6 +315,7 @@ with gr.Blocks(title="NuMarkApp") as demo:
|
|
| 315 |
structured_json_templates.__getitem__,
|
| 316 |
inputs=template_preset,
|
| 317 |
outputs=template,
|
|
|
|
| 318 |
)
|
| 319 |
|
| 320 |
generate_template_button.click(
|
|
|
|
| 315 |
structured_json_templates.__getitem__,
|
| 316 |
inputs=template_preset,
|
| 317 |
outputs=template,
|
| 318 |
+
api_name="select_structured_json_template",
|
| 319 |
)
|
| 320 |
|
| 321 |
generate_template_button.click(
|