diff --git a/ui/packages/app/src/main.ts b/ui/packages/app/src/main.ts index bef47112837fc..ffd8dbc89ad46 100644 --- a/ui/packages/app/src/main.ts +++ b/ui/packages/app/src/main.ts @@ -96,8 +96,8 @@ function create_custom_element() { }); } } - - customElements.define("gradio-app", GradioApp); + if (!customElements.get("gradio-app")) + customElements.define("gradio-app", GradioApp); } create_custom_element();