Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#4 from hlky/repo-sync/stable-diffusi…
Browse files Browse the repository at this point in the history
…on-webui/default

🔄 Synced file(s) with hlky/stable-diffusion-webui
  • Loading branch information
hlky committed Aug 24, 2022
2 parents ad24a61 + 20d082f commit a6ba87a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/relauncher.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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)

0 comments on commit a6ba87a

Please sign in to comment.