Skip to content

Commit 599d313

Browse files
committed
Increase the reload timeout a bit
1 parent 4d64a57 commit 599d313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def set_interface_mode(mode, choices):
403403
group = gr.CheckboxGroup(choices=extensions, value=shared.args.extensions, label="Available extensions")
404404
kill = gr.Button("Apply and restart the interface")
405405
kill.click(set_interface_mode, [modes_menu, group], None)
406-
kill.click(lambda : None, None, None, _js='() => {document.body.innerHTML=\'<h1 style="font-family:monospace;margin-top:20%;color:lightgray;text-align:center;">Reloading...</h1>\'; setTimeout(function(){location.reload()},2000)}')
406+
kill.click(lambda : None, None, None, _js='() => {document.body.innerHTML=\'<h1 style="font-family:monospace;margin-top:20%;color:lightgray;text-align:center;">Reloading...</h1>\'; setTimeout(function(){location.reload()},2500)}')
407407

408408
if shared.args.extensions is not None:
409409
extensions_module.create_extensions_block()

0 commit comments

Comments
 (0)