Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def toggle_education_other(choice):
|
|
178 |
is_other = (choice == "其他(请注明)")
|
179 |
return gr.update(visible=is_other, interactive=is_other, value="")
|
180 |
|
181 |
-
def check_info_complete(age, gender, education, education_other, ai_experience):
|
182 |
if username.strip() and age and gender and education and ai_experience:
|
183 |
if education == "其他(请注明)" and not education_other.strip():
|
184 |
return gr.update(interactive=False)
|
|
|
178 |
is_other = (choice == "其他(请注明)")
|
179 |
return gr.update(visible=is_other, interactive=is_other, value="")
|
180 |
|
181 |
+
def check_info_complete(username, age, gender, education, education_other, ai_experience):
|
182 |
if username.strip() and age and gender and education and ai_experience:
|
183 |
if education == "其他(请注明)" and not education_other.strip():
|
184 |
return gr.update(interactive=False)
|