dev-yuje commited on
Commit
8cb66e5
ยท
1 Parent(s): 82f601c

Remove Soft theme (blue label bug), unit back in label parentheses

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -279,7 +279,10 @@ def generate_response(chatbot, user_message, analysis_report):
279
  chatbot[-1] = {"role": "assistant", "content": f"โš ๏ธ ์ƒ๋‹ด ์—๋Ÿฌ: {str(e)}"}
280
  yield chatbot, ""
281
 
282
- with gr.Blocks(title="KCB AI Consultant", theme=gr.themes.Soft()) as demo:
 
 
 
283
  analysis_report = gr.State(None)
284
  gr.Markdown("# ๐Ÿ›ก๏ธ KCB AI ์‹ ์šฉ ์ƒ๋‹ด ์‹œ์Šคํ…œ")
285
 
@@ -294,9 +297,13 @@ with gr.Blocks(title="KCB AI Consultant", theme=gr.themes.Soft()) as demo:
294
  with gr.Row():
295
  for key in keys_no_perf[i:i+2]:
296
  field_label, unit, _ = FEATURES_DETAIL[key]
297
- # ๋‹จ์œ„๋ฅผ info(ํ•„๋“œ ํ•˜๋‹จ ๋ณด์กฐ ํ…์ŠคํŠธ)๋กœ ํ‘œ์‹œ
298
  unit_short = unit.replace(" ๋‹จ์œ„", "").replace("๊ฐœ์ˆ˜", "๊ฐœ")
299
- tb = gr.Textbox(label=field_label, info=unit_short, placeholder="0", min_width=120)
 
 
 
 
 
300
  input_list.append(tb)
301
  # PERF1 ์ผฌ ์ฝ”๋„ˆ๋กœ ๋ฐฐ์น˜
302
  with gr.Row():
 
279
  chatbot[-1] = {"role": "assistant", "content": f"โš ๏ธ ์ƒ๋‹ด ์—๋Ÿฌ: {str(e)}"}
280
  yield chatbot, ""
281
 
282
+ with gr.Blocks(title="KCB AI Consultant", css="
283
+ .label-wrap span { font-size: 13px !important; font-weight: 600 !important; }
284
+ .unit-info .svelte-1f354aw { font-size: 11px !important; color: #888 !important; }
285
+ ") as demo:
286
  analysis_report = gr.State(None)
287
  gr.Markdown("# ๐Ÿ›ก๏ธ KCB AI ์‹ ์šฉ ์ƒ๋‹ด ์‹œ์Šคํ…œ")
288
 
 
297
  with gr.Row():
298
  for key in keys_no_perf[i:i+2]:
299
  field_label, unit, _ = FEATURES_DETAIL[key]
 
300
  unit_short = unit.replace(" ๋‹จ์œ„", "").replace("๊ฐœ์ˆ˜", "๊ฐœ")
301
+ # label์— ๋‹จ์œ„๋ฅผ ๊ดดํ˜ธ๋กœ ๋ถ™์ด๋˜, info ์—†์•  ๋ ˆ์ด์•„์›ƒ ์ •๋ฆฌ
302
+ tb = gr.Textbox(
303
+ label=f"{field_label} ({unit_short})",
304
+ placeholder="0",
305
+ min_width=120
306
+ )
307
  input_list.append(tb)
308
  # PERF1 ์ผฌ ์ฝ”๋„ˆ๋กœ ๋ฐฐ์น˜
309
  with gr.Row():