Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def get_species_list(furry_data, top_category, sub_category):
|
|
| 41 |
species = furry_data[top_category][sub_category]
|
| 42 |
# 检查 species 是否是列表,并且每个元素是否有 "Name" 字段
|
| 43 |
if isinstance(species, list) and all(isinstance(item, dict) and "Name" in item for item in species):
|
| 44 |
-
return [item
|
| 45 |
else:
|
| 46 |
print(f"[DEBUG] Unexpected structure for species: {species}")
|
| 47 |
return []
|
|
@@ -319,7 +319,7 @@ def build_interface():
|
|
| 319 |
gender_selection_furry = gr.Radio(
|
| 320 |
label="Furry Gender Selection (选择Furry性别)",
|
| 321 |
choices=["Male", "Female"],
|
| 322 |
-
value=
|
| 323 |
visible=False # 默认隐藏,仅在 Furry 选项时显示
|
| 324 |
)
|
| 325 |
|
|
|
|
| 41 |
species = furry_data[top_category][sub_category]
|
| 42 |
# 检查 species 是否是列表,并且每个元素是否有 "Name" 字段
|
| 43 |
if isinstance(species, list) and all(isinstance(item, dict) and "Name" in item for item in species):
|
| 44 |
+
return [item "Name" for item in species]
|
| 45 |
else:
|
| 46 |
print(f"[DEBUG] Unexpected structure for species: {species}")
|
| 47 |
return []
|
|
|
|
| 319 |
gender_selection_furry = gr.Radio(
|
| 320 |
label="Furry Gender Selection (选择Furry性别)",
|
| 321 |
choices=["Male", "Female"],
|
| 322 |
+
value="Male", # 默认公
|
| 323 |
visible=False # 默认隐藏,仅在 Furry 选项时显示
|
| 324 |
)
|
| 325 |
|