snatcheggmoderntimes commited on
Commit
6989928
·
verified ·
1 Parent(s): d21aacd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -304,8 +304,9 @@ 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
- 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",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json",f"--gradio-auth {username}:{password}")])
311
  if(ret.returncode == 0 ):
 
304
  # at least give feedback on this anyway, because it's not
305
  # really tested that much at the moment.
306
 
307
+ username=str(os.environ['username'])
308
+ password=str(os.environ['password'])
309
+ print(username,password)
310
  while True:
311
  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",f"--gradio-auth {username}:{password}")])
312
  if(ret.returncode == 0 ):