unnastyle commited on
Commit
7fd266b
Β·
verified Β·
1 Parent(s): 89e5a27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # λ°˜ν™˜κ°’: κ³Όλͺ©λͺ…, λ“œλ‘­λ‹€μš΄ μ—…λ°μ΄νŠΈ(choices, value μ„€μ •), μ„Ήμ…˜λ³„ κ°•μ˜ 데이터(λ”•μ…”λ„ˆλ¦¬)
206
- return subject_name, gr.Dropdown.update(choices=sections_list, value=default_val), sections_dict
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: μΆ”κ°€μ½”λ“œ] μ‹œμž‘ ----------