ssboost commited on
Commit
9b38e32
·
verified ·
1 Parent(s): 2bbc031

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -235,6 +235,12 @@ def wrapper_modified(keyword, korean_only, apply_main_keyword_option, exclude_ze
235
  selected_cat = "전체 보기"
236
  download_file = None
237
 
 
 
 
 
 
 
238
  # choices 형식 처리 (중첩 리스트인 경우 첫 번째 값만 사용)
239
  if isinstance(cat_choices, dict) and 'choices' in cat_choices:
240
  cat_choices = [choice[0] if isinstance(choice, list) else choice for choice in cat_choices['choices']]
 
235
  selected_cat = "전체 보기"
236
  download_file = None
237
 
238
+ # table_html 처리 (dict인 경우 value 추출)
239
+ if isinstance(table_html, dict) and 'value' in table_html:
240
+ table_html = table_html['value']
241
+ elif isinstance(table_html, dict):
242
+ table_html = str(table_html) # dict를 문자열로 변환
243
+
244
  # choices 형식 처리 (중첩 리스트인 경우 첫 번째 값만 사용)
245
  if isinstance(cat_choices, dict) and 'choices' in cat_choices:
246
  cat_choices = [choice[0] if isinstance(choice, list) else choice for choice in cat_choices['choices']]