Spaces:
Running on Zero
Running on Zero
Fix: show_api is not a Gradio 6 event kwarg
Browse files
app.py
CHANGED
|
@@ -438,9 +438,9 @@ work best; the Bunny is there to show that arbitrary meshes go through the same
|
|
| 438 |
shape_file.change(preview_shape, inputs=[shape_file, num_points, seed], outputs=preview,
|
| 439 |
api_name="preview")
|
| 440 |
preset.change(apply_preset, inputs=[preset, labels_text, category], outputs=[labels_text, category],
|
| 441 |
-
api_name=False
|
| 442 |
run.click(segment, inputs=inputs, outputs=outputs, api_name="segment")
|
| 443 |
-
labels_text.submit(segment, inputs=inputs, outputs=outputs, api_name=False
|
| 444 |
|
| 445 |
if __name__ == "__main__":
|
| 446 |
demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)
|
|
|
|
| 438 |
shape_file.change(preview_shape, inputs=[shape_file, num_points, seed], outputs=preview,
|
| 439 |
api_name="preview")
|
| 440 |
preset.change(apply_preset, inputs=[preset, labels_text, category], outputs=[labels_text, category],
|
| 441 |
+
api_name=False)
|
| 442 |
run.click(segment, inputs=inputs, outputs=outputs, api_name="segment")
|
| 443 |
+
labels_text.submit(segment, inputs=inputs, outputs=outputs, api_name=False)
|
| 444 |
|
| 445 |
if __name__ == "__main__":
|
| 446 |
demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)
|