PSNbst commited on
Commit
4d84ad1
·
verified ·
1 Parent(s): 9959688

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -178,7 +178,7 @@ def generate_transformed_output(prompt, gender_option, top_cat, sub_cat, species
178
  furry_path = f"{top_cat} > {sub_cat} > {species_item}" if (top_cat and sub_cat and species_item) else "unknown"
179
  species_data = FURRY_DATA.get(top_cat, {}).get(sub_cat, [])
180
  species_details = next((item["Details"] for item in species_data if item["Name"] == species_item), "unknown details")
181
- gender_desc = furry_gender.lower() if furry_gender else "neutral"
182
  extra_line = f"\nfurry {gender_desc} {furry_path} {species_details} anthro character\n"
183
  else:
184
  extra_line = ""
@@ -401,7 +401,7 @@ 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
- 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 类目路径
 
178
  furry_path = f"{top_cat} > {sub_cat} > {species_item}" if (top_cat and sub_cat and species_item) else "unknown"
179
  species_data = FURRY_DATA.get(top_cat, {}).get(sub_cat, [])
180
  species_details = next((item["Details"] for item in species_data if item["Name"] == species_item), "unknown details")
181
+ gender_desc = gender_selection_furry.lower() if gender_selection_furry else "neutral"
182
  extra_line = f"\nfurry {gender_desc} {furry_path} {species_details} anthro character\n"
183
  else:
184
  extra_line = ""
 
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 = gender_selection_furry.lower() if gender_selection_furry 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 类目路径