diff --git a/.changeset/vast-gifts-win.md b/.changeset/vast-gifts-win.md new file mode 100644 index 0000000000..0f51d79947 --- /dev/null +++ b/.changeset/vast-gifts-win.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +feat:Fix Model3D template diff --git a/gradio/cli/commands/components/_create_utils.py b/gradio/cli/commands/components/_create_utils.py index f414d063c2..1024545c6c 100644 --- a/gradio/cli/commands/components/_create_utils.py +++ b/gradio/cli/commands/components/_create_utils.py @@ -191,6 +191,7 @@ OVERRIDES = { ), "Model3D": ComponentFiles( template="Model3D", + js_dir="model3D", demo_code=textwrap.dedent( """ with gr.Blocks() as demo: diff --git a/test/test_gradio_component_cli.py b/test/test_gradio_component_cli.py index ac805b0f51..1fe12fd3f3 100644 --- a/test/test_gradio_component_cli.py +++ b/test/test_gradio_component_cli.py @@ -31,6 +31,7 @@ from gradio.cli.commands.components.show import _show "UploadButton", "JSON", "FileExplorer", + "Model3D", ], ) def test_template_override_component(template, tmp_path):