From eb81de35646de5ef45488b1fca837abf47bb275a Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Tue, 28 Dec 2021 23:26:46 -0600 Subject: [PATCH] fixing frontend/index.html --- frontend/public/index.html | 9 +++------ gradio/templates/frontend/index.html | 12 +----------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/frontend/public/index.html b/frontend/public/index.html index 0b3005022e..a05f291b1b 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -25,14 +25,11 @@ gtag('js', new Date()); gtag('config', 'UA-156449732-1'); window.gradio_mode = "app"; - try { - let s = ""; - window.gradio_config = JSON.parse(`{{ config|tojson }}${s}`); - } catch (e) { - } + + - Gradio diff --git a/gradio/templates/frontend/index.html b/gradio/templates/frontend/index.html index 199e946adb..5c9e626d32 100644 --- a/gradio/templates/frontend/index.html +++ b/gradio/templates/frontend/index.html @@ -1,11 +1 @@ -{{ config['title'] or 'Gradio' }}Gradio
\ No newline at end of file +{{ config['title'] or 'Gradio' }}Gradio
\ No newline at end of file