Attempt at making interface restart more robust

This commit is contained in:
oobabooga 2023-05-16 22:27:43 -03:00
parent 259020a0be
commit 824fa8fc0e

View File

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