Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -202,8 +202,8 @@ def process_html_sections(html_text):
|
|
| 202 |
logging.debug("HTML μ²λ¦¬ μλ£ (μΉμ
λ³ λΆλ¦¬)")
|
| 203 |
sections_list = list(sections_dict.keys())
|
| 204 |
default_val = sections_list[0] if sections_list else None
|
| 205 |
-
#
|
| 206 |
-
return subject_name, gr.
|
| 207 |
# ---------- [λͺ¨λ1: μμ λ μ½λ - μΉμ
λ³ λλ‘λ€μ΄ UI] λ ----------
|
| 208 |
|
| 209 |
# ---------- [λͺ¨λ2: μΆκ°μ½λ] μμ ----------
|
|
|
|
| 202 |
logging.debug("HTML μ²λ¦¬ μλ£ (μΉμ
λ³ λΆλ¦¬)")
|
| 203 |
sections_list = list(sections_dict.keys())
|
| 204 |
default_val = sections_list[0] if sections_list else None
|
| 205 |
+
# gr.Dropdown.update() λμ gr.update()λ₯Ό μ¬μ©ν©λλ€.
|
| 206 |
+
return subject_name, gr.update(choices=sections_list, value=default_val), sections_dict
|
| 207 |
# ---------- [λͺ¨λ1: μμ λ μ½λ - μΉμ
λ³ λλ‘λ€μ΄ UI] λ ----------
|
| 208 |
|
| 209 |
# ---------- [λͺ¨λ2: μΆκ°μ½λ] μμ ----------
|