Spaces:
Sleeping
Sleeping
Remove Soft theme (blue label bug), unit back in label parentheses
Browse files
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",
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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():
|