Attempt at making interface restart more robust

This commit is contained in:
oobabooga 2023-05-22 00:26:07 -03:00
parent 30225b9dd0
commit 753f6c5250

View File

@ -1055,6 +1055,7 @@ if __name__ == "__main__":
time.sleep(0.5)
if shared.need_restart:
shared.need_restart = False
time.sleep(0.5)
shared.gradio['interface'].close()
time.sleep(0.5)
create_interface()