TheLastBen commited on
Commit
98ce76a
1 Parent(s): 0d9301d

Upload sdxllorapps.py

Browse files
Files changed (1) hide show
  1. Scripts/sdxllorapps.py +5 -4
Scripts/sdxllorapps.py CHANGED
@@ -751,10 +751,9 @@ def test(MDLPTH, User, Password, Download_SDXL_Model):
751
  call('git reset --hard', shell=True, stdout=open('/dev/null', 'w'))
752
  print('')
753
  call('git checkout master', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
754
- call('git pull', shell=True, stdout=open('/dev/null', 'w'))
755
- os.chdir('/notebooks')
756
  clear_output()
757
-
758
 
759
  if os.path.exists(MDLPTH):
760
  call('mkdir models/Lora', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
@@ -769,7 +768,9 @@ def test(MDLPTH, User, Password, Download_SDXL_Model):
769
  elif Download_SDXL_Model and os.path.exists('/notebooks/Fast-Dreambooth/sd_xl_base_1.0.safetensors'):
770
  if not os.path.exists('models/Stable-diffusion/sd_xl_base_1.0.safetensors'):
771
  call('ln -s /notebooks/Fast-Dreambooth/sd_xl_base_1.0.safetensors models/Stable-diffusion', shell=True)
772
- print('Model already exists, skipping download...')
 
 
773
 
774
  call('wget -q -O /usr/local/lib/python3.9/dist-packages/gradio/blocks.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/AUTOMATIC1111_files/blocks.py', shell=True)
775
 
 
751
  call('git reset --hard', shell=True, stdout=open('/dev/null', 'w'))
752
  print('')
753
  call('git checkout master', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
754
+ call('git pull', shell=True, stdout=open('/dev/null', 'w'))
 
755
  clear_output()
756
+
757
 
758
  if os.path.exists(MDLPTH):
759
  call('mkdir models/Lora', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
 
768
  elif Download_SDXL_Model and os.path.exists('/notebooks/Fast-Dreambooth/sd_xl_base_1.0.safetensors'):
769
  if not os.path.exists('models/Stable-diffusion/sd_xl_base_1.0.safetensors'):
770
  call('ln -s /notebooks/Fast-Dreambooth/sd_xl_base_1.0.safetensors models/Stable-diffusion', shell=True)
771
+ print('Model already exists, skipping download...')
772
+
773
+
774
 
775
  call('wget -q -O /usr/local/lib/python3.9/dist-packages/gradio/blocks.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/AUTOMATIC1111_files/blocks.py', shell=True)
776