Update BuShu.py
Browse files
BuShu.py
CHANGED
|
@@ -372,9 +372,8 @@ Lora_target1 = os.path.join(Lora_destination_folder1, Lora_filename1)
|
|
| 372 |
|
| 373 |
if Lora_download1:
|
| 374 |
response = requests.get(Lora_url1)
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
f.write(response.content)
|
| 378 |
|
| 379 |
# Lora任务2
|
| 380 |
Lora_destination_folder2 = "/root/main/models/Lora"
|
|
@@ -382,9 +381,8 @@ Lora_target2 = os.path.join(Lora_destination_folder2, Lora_filename2)
|
|
| 382 |
|
| 383 |
if Lora_download2:
|
| 384 |
response = requests.get(Lora_url2)
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
f.write(response.content)
|
| 388 |
|
| 389 |
# Lora任务3
|
| 390 |
Lora_destination_folder3 = "/root/main/models/Lora"
|
|
@@ -392,9 +390,8 @@ Lora_target3 = os.path.join(Lora_destination_folder3, Lora_filename3)
|
|
| 392 |
|
| 393 |
if Lora_download3:
|
| 394 |
response = requests.get(Lora_url3)
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
f.write(response.content)
|
| 398 |
|
| 399 |
# Lora任务4
|
| 400 |
Lora_destination_folder4 = Lora_destination_folder3
|
|
@@ -402,9 +399,8 @@ Lora_target4 = os.path.join(Lora_destination_folder4, Lora_filename4)
|
|
| 402 |
|
| 403 |
if Lora_download4:
|
| 404 |
response = requests.get(Lora_url4)
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
f.write(response.content)
|
| 408 |
|
| 409 |
# Lora任务5
|
| 410 |
Lora_destination_folder5 = Lora_destination_folder3
|
|
@@ -412,9 +408,8 @@ Lora_target5 = os.path.join(Lora_destination_folder5, Lora_filename5)
|
|
| 412 |
|
| 413 |
if Lora_download5:
|
| 414 |
response = requests.get(Lora_url5)
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
f.write(response.content)
|
| 418 |
|
| 419 |
# Lora任务6
|
| 420 |
Lora_destination_folder6 = Lora_destination_folder3
|
|
@@ -422,9 +417,8 @@ Lora_target6 = os.path.join(Lora_destination_folder6, Lora_filename6)
|
|
| 422 |
|
| 423 |
if Lora_download6:
|
| 424 |
response = requests.get(Lora_url6)
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
f.write(response.content)
|
| 428 |
|
| 429 |
|
| 430 |
# VAE下载
|
|
|
|
| 372 |
|
| 373 |
if Lora_download1:
|
| 374 |
response = requests.get(Lora_url1)
|
| 375 |
+
with open(Lora_target1, 'wb') as f:
|
| 376 |
+
f.write(response.content)
|
|
|
|
| 377 |
|
| 378 |
# Lora任务2
|
| 379 |
Lora_destination_folder2 = "/root/main/models/Lora"
|
|
|
|
| 381 |
|
| 382 |
if Lora_download2:
|
| 383 |
response = requests.get(Lora_url2)
|
| 384 |
+
with open(Lora_target2, 'wb') as f:
|
| 385 |
+
f.write(response.content)
|
|
|
|
| 386 |
|
| 387 |
# Lora任务3
|
| 388 |
Lora_destination_folder3 = "/root/main/models/Lora"
|
|
|
|
| 390 |
|
| 391 |
if Lora_download3:
|
| 392 |
response = requests.get(Lora_url3)
|
| 393 |
+
with open(Lora_target3, 'wb') as f:
|
| 394 |
+
f.write(response.content)
|
|
|
|
| 395 |
|
| 396 |
# Lora任务4
|
| 397 |
Lora_destination_folder4 = Lora_destination_folder3
|
|
|
|
| 399 |
|
| 400 |
if Lora_download4:
|
| 401 |
response = requests.get(Lora_url4)
|
| 402 |
+
with open(Lora_target4, 'wb') as f:
|
| 403 |
+
f.write(response.content)
|
|
|
|
| 404 |
|
| 405 |
# Lora任务5
|
| 406 |
Lora_destination_folder5 = Lora_destination_folder3
|
|
|
|
| 408 |
|
| 409 |
if Lora_download5:
|
| 410 |
response = requests.get(Lora_url5)
|
| 411 |
+
with open(Lora_target5, 'wb') as f:
|
| 412 |
+
f.write(response.content)
|
|
|
|
| 413 |
|
| 414 |
# Lora任务6
|
| 415 |
Lora_destination_folder6 = Lora_destination_folder3
|
|
|
|
| 417 |
|
| 418 |
if Lora_download6:
|
| 419 |
response = requests.get(Lora_url6)
|
| 420 |
+
with open(Lora_target6, 'wb') as f:
|
| 421 |
+
f.write(response.content)
|
|
|
|
| 422 |
|
| 423 |
|
| 424 |
# VAE下载
|