Update main3.py
Browse files
main3.py
CHANGED
|
@@ -305,7 +305,7 @@ css_content = '''
|
|
| 305 |
with open(f'{params["dir"]}/style.css', 'a') as cssFile:
|
| 306 |
cssFile.write(css_content)
|
| 307 |
# png_info脚本
|
| 308 |
-
if params["ui"] == "AUTOMATIC1111原版v1.5.1 and not os.path.exists(f'{params["dir"]}/extensions/adetailer')
|
| 309 |
subprocess.run([wget_path, '-O', f'{params["dir"]}/javascript/piw.js',
|
| 310 |
'https://huggingface.co/datasets/daasd/sd_backup/resolve/main/PNG_info_web.js'],
|
| 311 |
check=True)
|
|
@@ -331,5 +331,4 @@ with open(f'{params["dir"]}/requirements_versions.txt', 'r') as readFile:
|
|
| 331 |
content = readFile.read()
|
| 332 |
content += '\nhttpx==0.24.1'
|
| 333 |
with open(f'{params["dir"]}/requirements_versions.txt', 'w') as writeFile:
|
| 334 |
-
writeFile.write(content)
|
| 335 |
-
|
|
|
|
| 305 |
with open(f'{params["dir"]}/style.css', 'a') as cssFile:
|
| 306 |
cssFile.write(css_content)
|
| 307 |
# png_info脚本
|
| 308 |
+
if params["ui"] == "AUTOMATIC1111原版v1.5.1" and not os.path.exists(f'{params["dir"]}/extensions/adetailer'):
|
| 309 |
subprocess.run([wget_path, '-O', f'{params["dir"]}/javascript/piw.js',
|
| 310 |
'https://huggingface.co/datasets/daasd/sd_backup/resolve/main/PNG_info_web.js'],
|
| 311 |
check=True)
|
|
|
|
| 331 |
content = readFile.read()
|
| 332 |
content += '\nhttpx==0.24.1'
|
| 333 |
with open(f'{params["dir"]}/requirements_versions.txt', 'w') as writeFile:
|
| 334 |
+
writeFile.write(content)
|
|
|