From 03889353cabd62019793e57a6d0c37e0c6b66841 Mon Sep 17 00:00:00 2001 From: Wei-Lin Chiang Date: Fri, 20 Oct 2023 10:07:52 +0000 Subject: [PATCH] fix --- fastchat/utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fastchat/utils.py b/fastchat/utils.py index 1bf4a0601..253e9d0f0 100644 --- a/fastchat/utils.py +++ b/fastchat/utils.py @@ -192,15 +192,11 @@ def pretty_print_semaphore(semaphore): """A javascript function to get url parameters for the gradio web server.""" get_window_url_params_js = """ -function() { +() => { document.body.classList.toggle('dark'); document.body.classList.toggle('light'); document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)'; - const params = new URLSearchParams(window.location.search); - url_params = Object.fromEntries(params); - console.log("url_params", url_params); - return url_params; - } +} """