mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
Fix Model3D template (#6326)
* Add test * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
25e380078a
commit
ed546f2e13
5
.changeset/vast-gifts-win.md
Normal file
5
.changeset/vast-gifts-win.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
feat:Fix Model3D template
|
@ -191,6 +191,7 @@ OVERRIDES = {
|
||||
),
|
||||
"Model3D": ComponentFiles(
|
||||
template="Model3D",
|
||||
js_dir="model3D",
|
||||
demo_code=textwrap.dedent(
|
||||
"""
|
||||
with gr.Blocks() as demo:
|
||||
|
@ -31,6 +31,7 @@ from gradio.cli.commands.components.show import _show
|
||||
"UploadButton",
|
||||
"JSON",
|
||||
"FileExplorer",
|
||||
"Model3D",
|
||||
],
|
||||
)
|
||||
def test_template_override_component(template, tmp_path):
|
||||
|
Loading…
Reference in New Issue
Block a user