Skip to content

Commit

Permalink
Fix Model3D template (#6326)
Browse files Browse the repository at this point in the history
* Add test

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
freddyaboulton and gradio-pr-bot authored Nov 7, 2023
1 parent 25e3800 commit ed546f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/vast-gifts-win.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": patch
---

feat:Fix Model3D template
1 change: 1 addition & 0 deletions gradio/cli/commands/components/_create_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def __post_init__(self):
),
"Model3D": ComponentFiles(
template="Model3D",
js_dir="model3D",
demo_code=textwrap.dedent(
"""
with gr.Blocks() as demo:
Expand Down
1 change: 1 addition & 0 deletions test/test_gradio_component_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"UploadButton",
"JSON",
"FileExplorer",
"Model3D",
],
)
def test_template_override_component(template, tmp_path):
Expand Down

0 comments on commit ed546f2

Please sign in to comment.