mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 15:22:55 +03:00
33ebc61204
This reverts commit 444117f3ba
.
12 lines
277 B
Python
12 lines
277 B
Python
import os, time
|
|
|
|
n = 0
|
|
while True:
|
|
print('Relauncher: Launching...')
|
|
if n > 0:
|
|
print(f'\tRelaunch count: {n}')
|
|
os.system("python scripts/webui.py")
|
|
print('Relauncher: Process is ending. Relaunching in 0.5s...')
|
|
n += 1
|
|
time.sleep(0.5)
|