Spaces:
Running
Running
stlaurentjr
commited on
Commit
•
e9537a0
1
Parent(s):
b227d1f
Update scripts/mainrunpodA1111.py
Browse files- scripts/mainrunpodA1111.py +15 -0
scripts/mainrunpodA1111.py
CHANGED
@@ -318,6 +318,21 @@ def loradwn(LoRA_LINK):
|
|
318 |
else:
|
319 |
print('[1;31mWrong link, check that the link is valid')
|
320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
def InstallDeforum():
|
322 |
os.chdir('/workspace/sd/stable-diffusion-webui/extensions')
|
323 |
if not os.path.exists("deforum-for-automatic1111-webui"):
|
|
|
318 |
else:
|
319 |
print('[1;31mWrong link, check that the link is valid')
|
320 |
|
321 |
+
def download_and_install_config():
|
322 |
+
target_directory = '/workspace/sd/stable-diffusion-webui/'
|
323 |
+
config_url = "https://huggingface.co/spaces/stlaurentjr/RNPD/raw/main/config/config.json"
|
324 |
+
config_file_path = os.path.join(target_directory, 'config.json')
|
325 |
+
|
326 |
+
# Check if the config file already exists
|
327 |
+
if not os.path.exists(config_file_path):
|
328 |
+
# Change the directory
|
329 |
+
os.chdir(target_directory)
|
330 |
+
# Download the file using curl command
|
331 |
+
call(f'curl -o config.json {config_url}', shell=True)
|
332 |
+
print(f'Config file downloaded successfully.')
|
333 |
+
else:
|
334 |
+
print('Config file already exists, download skipped.')
|
335 |
+
|
336 |
def InstallDeforum():
|
337 |
os.chdir('/workspace/sd/stable-diffusion-webui/extensions')
|
338 |
if not os.path.exists("deforum-for-automatic1111-webui"):
|