Attempt at making interface restart more robust
This commit is contained in:
parent
30225b9dd0
commit
753f6c5250
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue