snatcheggmoderntimes commited on
Commit
362d1f4
·
verified ·
1 Parent(s): 64406f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -304,8 +304,10 @@ del os ,user_home ,pyexecutable ,subprocess
304
  # at least give feedback on this anyway, because it's not
305
  # really tested that much at the moment.
306
 
 
 
307
  while True:
308
- ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--xformers",r"--enable-insecure-extension-access",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
309
  if(ret.returncode == 0 ):
310
  del ret
311
  gc.collect()
 
304
  # at least give feedback on this anyway, because it's not
305
  # really tested that much at the moment.
306
 
307
+ username=os.environ['username']
308
+ password=os.environ['password']
309
  while True:
310
+ ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--xformers",r"--enable-insecure-extension-access",r"--skip-torch-cuda-test",f"--gradio-auth {username}:{password}",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
311
  if(ret.returncode == 0 ):
312
  del ret
313
  gc.collect()