Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -401,14 +401,10 @@ def build_interface():
|
|
401 |
# Step 2: 如果是 Furry 类目,处理性别描述
|
402 |
if gender == "Trans_to_Furry":
|
403 |
furry_path = f"{tc} > {sc} > {spc}" if (tc and sc and spc) else "unknown"
|
404 |
-
|
405 |
-
|
|
|
406 |
prompt += f", Furry: {furry_path}, {gender_description}, {species_details}" # 添加 Furry 类目路径
|
407 |
-
|
408 |
-
# 添加性别描述(如果选择了性别)
|
409 |
-
if gender_selection_furry:
|
410 |
-
gender_description = ", ".join([g.lower() for g in gender_selection_furry]) # 转换为小写
|
411 |
-
prompt += f", {gender_description}" # 将性别描述附加到提示词
|
412 |
|
413 |
# Debug 添加性别后的 Prompt
|
414 |
print(f"Debug Prompt with Furry Gender: {prompt}")
|
|
|
401 |
# Step 2: 如果是 Furry 类目,处理性别描述
|
402 |
if gender == "Trans_to_Furry":
|
403 |
furry_path = f"{tc} > {sc} > {spc}" if (tc and sc and spc) else "unknown"
|
404 |
+
gender_desc = furry_gender.lower() if furry_gender else "neutral"
|
405 |
+
species_data = FURRY_DATA.get(tc, {}).get(sc, [])
|
406 |
+
species_details = next((item.get("Details", "unknown details") for item in species_data if item.get("Name") == spc), "unknown details")
|
407 |
prompt += f", Furry: {furry_path}, {gender_description}, {species_details}" # 添加 Furry 类目路径
|
|
|
|
|
|
|
|
|
|
|
408 |
|
409 |
# Debug 添加性别后的 Prompt
|
410 |
print(f"Debug Prompt with Furry Gender: {prompt}")
|