Spaces:
Sleeping
Sleeping
DK 이대근
commited on
Commit
·
1a47281
1
Parent(s):
83fe380
Fix
Browse files
app.py
CHANGED
@@ -57,14 +57,14 @@ def predict(f_ck, f_yk, N_Ed, M_Edz, M_Edy, cover, rebar_dia, dc_ratio):
|
|
57 |
|
58 |
# 3) Gradio UI 정의
|
59 |
inputs = [
|
60 |
-
gr.Number(label="f_ck (MPa)", value=40),
|
61 |
-
gr.Number(label="f_yk (MPa)", value=
|
62 |
-
gr.Number(label="N_Ed (
|
63 |
-
gr.Number(label="M_Edz (
|
64 |
-
gr.Number(label="M_Edy (
|
65 |
-
gr.Number(label="cover (mm)", value=
|
66 |
-
gr.Number(label="rebar_dia (mm)", value=
|
67 |
-
gr.Number(label="
|
68 |
]
|
69 |
|
70 |
outputs = [
|
@@ -74,9 +74,9 @@ outputs = [
|
|
74 |
gr.Number(label="rebar_x (개)"),
|
75 |
gr.Number(label="rebar_y (개)"),
|
76 |
gr.Number(label="exponent a"),
|
77 |
-
gr.Number(label="N_Rd"),
|
78 |
-
gr.Number(label="M_Rdz"),
|
79 |
-
gr.Number(label="M_Rdy"),
|
80 |
gr.Number(label="SF")
|
81 |
]
|
82 |
|
@@ -84,7 +84,7 @@ demo = gr.Interface(
|
|
84 |
fn=predict,
|
85 |
inputs=inputs,
|
86 |
outputs=outputs,
|
87 |
-
title="🔧 RC 기둥 단면
|
88 |
description="Eurocode 2 기반 ML 모델"
|
89 |
)
|
90 |
|
|
|
57 |
|
58 |
# 3) Gradio UI 정의
|
59 |
inputs = [
|
60 |
+
gr.Number(label="f_ck (MPa) 범위: 30,35,40,45,50", value=40),
|
61 |
+
gr.Number(label="f_yk (MPa) 범위: 400, 500, 600", value=600),
|
62 |
+
gr.Number(label="N_Ed (N) 범위: 200e3 ~ 800e3", value=455000),
|
63 |
+
gr.Number(label="M_Edz (N·mm) 범위: 50e6 ~ 200e6", value=186200000),
|
64 |
+
gr.Number(label="M_Edy (N·mm) 범위: 50e6 ~ 200e6", value=126100000),
|
65 |
+
gr.Number(label="cover (mm) 고정", value=50),
|
66 |
+
gr.Number(label="rebar_dia (mm) 범위: 16,20,25,32,40", value=20),
|
67 |
+
gr.Number(label="Safety Factor", value=0.9, precision=2)
|
68 |
]
|
69 |
|
70 |
outputs = [
|
|
|
74 |
gr.Number(label="rebar_x (개)"),
|
75 |
gr.Number(label="rebar_y (개)"),
|
76 |
gr.Number(label="exponent a"),
|
77 |
+
gr.Number(label="N_Rd (N)"),
|
78 |
+
gr.Number(label="M_Rdz (N·mm)"),
|
79 |
+
gr.Number(label="M_Rdy (N·mm)"),
|
80 |
gr.Number(label="SF")
|
81 |
]
|
82 |
|
|
|
84 |
fn=predict,
|
85 |
inputs=inputs,
|
86 |
outputs=outputs,
|
87 |
+
title="🔧 RC 기둥 단면 설계",
|
88 |
description="Eurocode 2 기반 ML 모델"
|
89 |
)
|
90 |
|