From 744bf7cbf20826445b40ace4aa03136d7e86b09a Mon Sep 17 00:00:00 2001 From: Maya <48323879+mayaeary@users.noreply.github.com> Date: Fri, 7 Apr 2023 17:17:16 +0300 Subject: [PATCH] Get rid of type parameter warning (#883) Fix annoying `The 'type' parameter has been deprecated. Use the Number component instead` warning --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 4fdeb80b..a2521b29 100644 --- a/server.py +++ b/server.py @@ -541,7 +541,7 @@ def create_interface(): shared.gradio['interface_modes_menu'] = gr.Dropdown(choices=modes, value=current_mode, label="Mode") shared.gradio['extensions_menu'] = gr.CheckboxGroup(choices=get_available_extensions(), value=shared.args.extensions, label="Available extensions") shared.gradio['bool_menu'] = gr.CheckboxGroup(choices=bool_list, value=bool_active, label="Boolean command-line flags") - shared.gradio['reset_interface'] = gr.Button("Apply and restart the interface", type="primary") + shared.gradio['reset_interface'] = gr.Button("Apply and restart the interface", variant="primary") shared.gradio['reset_interface'].click(set_interface_arguments, [shared.gradio[k] for k in ['interface_modes_menu', 'extensions_menu', 'bool_menu']], None) shared.gradio['reset_interface'].click(lambda: None, None, None, _js='() => {document.body.innerHTML=\'

Reloading...

\'; setTimeout(function(){location.reload()},2500); return []}')