save code
This commit is contained in:
+2
-2
@@ -123,7 +123,7 @@ def GetHumanDesDesc(img_url):
|
|||||||
return text
|
return text
|
||||||
|
|
||||||
def takeoff_cloth_first(human_name, is_girl):
|
def takeoff_cloth_first(human_name, is_girl):
|
||||||
print('换泳装')
|
print(f'换泳装 {change_with_add_cloth}')
|
||||||
queue = requests.get("http://localhost:8188/queue").json()
|
queue = requests.get("http://localhost:8188/queue").json()
|
||||||
if queue["queue_running"] or queue["queue_pending"]:
|
if queue["queue_running"] or queue["queue_pending"]:
|
||||||
return None, "cur gpu is busy"
|
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"]:
|
if queue["queue_running"] or queue["queue_pending"]:
|
||||||
return None, None, sex_girl, "cur gpu is busy, Shou not happen"
|
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:
|
with open(f'{APP_ROOT}/{change_only_name}', 'r', encoding='utf-8') as file:
|
||||||
prompt_text = file.read()
|
prompt_text = file.read()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user