Update app.py
Browse files
app.py
CHANGED
@@ -272,7 +272,7 @@ def wrapper_modified(keyword, korean_only, apply_main_keyword_option, exclude_ze
|
|
272 |
logger.error(f"νμΌ λ³΅μ¬ μ€λ₯: {file_error}")
|
273 |
|
274 |
return (
|
275 |
-
|
276 |
gr.update(choices=cat_choices),
|
277 |
gr.update(choices=vol_choices),
|
278 |
None,
|
@@ -413,20 +413,23 @@ def process_search_results(keyword, korean_only, apply_main_keyword, exclude_zer
|
|
413 |
|
414 |
table_html, cat_choices, vol_choices, df, selected_cat, excel, keyword_section_vis, cat_section_vis, new_keyword_state = result
|
415 |
|
416 |
-
|
|
|
417 |
empty_placeholder_vis = False
|
418 |
keyword_section_visibility = True
|
419 |
execution_section_visibility = True
|
|
|
420 |
else:
|
421 |
empty_placeholder_vis = True
|
422 |
keyword_section_visibility = False
|
423 |
execution_section_visibility = False
|
|
|
424 |
|
425 |
return (
|
426 |
table_html, cat_choices, vol_choices, df, selected_cat, excel,
|
427 |
gr.update(visible=keyword_section_visibility),
|
428 |
-
gr.update(visible=
|
429 |
-
gr.update(visible=False),
|
430 |
gr.update(visible=empty_placeholder_vis),
|
431 |
gr.update(visible=execution_section_visibility),
|
432 |
new_keyword_state
|
|
|
272 |
logger.error(f"νμΌ λ³΅μ¬ μ€λ₯: {file_error}")
|
273 |
|
274 |
return (
|
275 |
+
table_html,
|
276 |
gr.update(choices=cat_choices),
|
277 |
gr.update(choices=vol_choices),
|
278 |
None,
|
|
|
413 |
|
414 |
table_html, cat_choices, vol_choices, df, selected_cat, excel, keyword_section_vis, cat_section_vis, new_keyword_state = result
|
415 |
|
416 |
+
# ν
μ΄λΈμ΄ μμΌλ©΄ μΉμ
λ€μ νμ
|
417 |
+
if table_html and table_html.get('value') if isinstance(table_html, dict) else table_html:
|
418 |
empty_placeholder_vis = False
|
419 |
keyword_section_visibility = True
|
420 |
execution_section_visibility = True
|
421 |
+
logger.info("ν
μ΄λΈ λ°μ΄ν°κ° μμ - μΉμ
λ€μ νμν©λλ€")
|
422 |
else:
|
423 |
empty_placeholder_vis = True
|
424 |
keyword_section_visibility = False
|
425 |
execution_section_visibility = False
|
426 |
+
logger.info("ν
μ΄λΈ λ°μ΄ν°κ° μμ - κΈ°λ³Έ μνλ₯Ό μ μ§ν©λλ€")
|
427 |
|
428 |
return (
|
429 |
table_html, cat_choices, vol_choices, df, selected_cat, excel,
|
430 |
gr.update(visible=keyword_section_visibility),
|
431 |
+
gr.update(visible=True), # μΉ΄ν
κ³ λ¦¬ λΆμ μΉμ
μ νμ νμ
|
432 |
+
gr.update(visible=False), # μ§ν μνλ μ¨κΉ
|
433 |
gr.update(visible=empty_placeholder_vis),
|
434 |
gr.update(visible=execution_section_visibility),
|
435 |
new_keyword_state
|