Spaces:
Running on Zero
Running on Zero
Trim duplicate API endpoints
Browse files
app.py
CHANGED
|
@@ -437,9 +437,10 @@ work best; the Bunny is there to show that arbitrary meshes go through the same
|
|
| 437 |
|
| 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 |
run.click(segment, inputs=inputs, outputs=outputs, api_name="segment")
|
| 442 |
-
labels_text.submit(segment, inputs=inputs, outputs=outputs)
|
| 443 |
|
| 444 |
if __name__ == "__main__":
|
| 445 |
demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)
|
|
|
|
| 437 |
|
| 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, show_api=False)
|
| 442 |
run.click(segment, inputs=inputs, outputs=outputs, api_name="segment")
|
| 443 |
+
labels_text.submit(segment, inputs=inputs, outputs=outputs, api_name=False, show_api=False)
|
| 444 |
|
| 445 |
if __name__ == "__main__":
|
| 446 |
demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)
|