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; - } +} """