save code

This commit is contained in:
xsl
2025-08-10 20:53:46 +08:00
parent 7a08f7eca8
commit 742974a786
+2 -2
View File
@@ -123,7 +123,7 @@ def GetHumanDesDesc(img_url):
return text
def takeoff_cloth_first(human_name, is_girl):
print('换泳装')
print(f'换泳装 {change_with_add_cloth}')
queue = requests.get("http://localhost:8188/queue").json()
if queue["queue_running"] or queue["queue_pending"]:
return None, "cur gpu is busy"
@@ -282,7 +282,7 @@ def change(human_name, cloth_name, c_width, c_height, cloth_url, human_url, no2)
if queue["queue_running"] or queue["queue_pending"]:
return None, None, sex_girl, "cur gpu is busy, Shou not happen"
print('开始换衣服')
print(f'开始换衣服 {change_only_name}')
with open(f'{APP_ROOT}/{change_only_name}', 'r', encoding='utf-8') as file:
prompt_text = file.read()