mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Attempt at making interface restart more robust
This commit is contained in:
parent
30225b9dd0
commit
753f6c5250
@ -1055,6 +1055,7 @@ if __name__ == "__main__":
|
|||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
if shared.need_restart:
|
if shared.need_restart:
|
||||||
shared.need_restart = False
|
shared.need_restart = False
|
||||||
|
time.sleep(0.5)
|
||||||
shared.gradio['interface'].close()
|
shared.gradio['interface'].close()
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
create_interface()
|
create_interface()
|
||||||
|
Loading…
Reference in New Issue
Block a user