default value
Browse files- app.py +16 -14
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -37,19 +37,19 @@ def predict(construction_type, underground_floors, aboveground_floors, total_are
|
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=predict,
|
| 39 |
inputs=[
|
| 40 |
-
gr.Textbox(label="구조"),
|
| 41 |
-
gr.Number(label="지하층수"),
|
| 42 |
-
gr.Number(label="지상층수"),
|
| 43 |
-
gr.Number(label="연면적
|
| 44 |
-
gr.Number(label="대지면적
|
| 45 |
-
gr.Number(label="건축면적
|
| 46 |
-
gr.Number(label="조경면적
|
| 47 |
-
gr.Number(label="
|
| 48 |
-
gr.Number(label="
|
| 49 |
-
gr.
|
| 50 |
-
gr.Number(label="공사기간
|
| 51 |
-
gr.Textbox(label="현장위치
|
| 52 |
-
gr.Textbox(label="건축법상용도")
|
| 53 |
],
|
| 54 |
outputs=[
|
| 55 |
gr.Textbox(label="건축공사비"),
|
|
@@ -58,7 +58,9 @@ iface = gr.Interface(
|
|
| 58 |
gr.Textbox(label="통신공사비"),
|
| 59 |
gr.Textbox(label="토목공사비"),
|
| 60 |
gr.Textbox(label="조경공사비")
|
| 61 |
-
]
|
|
|
|
|
|
|
| 62 |
)
|
| 63 |
|
| 64 |
# Gradio 앱을 실행합니다.
|
|
|
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=predict,
|
| 39 |
inputs=[
|
| 40 |
+
gr.Textbox(label="구조", default="철근콘크리트조"),
|
| 41 |
+
gr.Number(label="지하층수", default=1),
|
| 42 |
+
gr.Number(label="지상층수", default=1),
|
| 43 |
+
gr.Number(label="연면적", default=300),
|
| 44 |
+
gr.Number(label="대지면적", default=500),
|
| 45 |
+
gr.Number(label="건축면적", default=120),
|
| 46 |
+
gr.Number(label="조경면적", default=150),
|
| 47 |
+
gr.Number(label="주차수", default=50),
|
| 48 |
+
gr.Number(label="발주년", default=2023),
|
| 49 |
+
gr.Number(label="발주월", default=9),
|
| 50 |
+
gr.Number(label="공사기간", default=100),
|
| 51 |
+
gr.Textbox(label="현장위치", default="경기도"),
|
| 52 |
+
gr.Textbox(label="건축법상용도", default="업무시설"),
|
| 53 |
],
|
| 54 |
outputs=[
|
| 55 |
gr.Textbox(label="건축공사비"),
|
|
|
|
| 58 |
gr.Textbox(label="통신공사비"),
|
| 59 |
gr.Textbox(label="토목공사비"),
|
| 60 |
gr.Textbox(label="조경공사비")
|
| 61 |
+
],
|
| 62 |
+
title="HG 공사비 예측 서비스",
|
| 63 |
+
description="프로젝트 개요를 기반으로 공사비를 예측합니다."
|
| 64 |
)
|
| 65 |
|
| 66 |
# Gradio 앱을 실행합니다.
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
pandas
|
| 2 |
scikit-learn
|
|
|
|
| 3 |
gradio
|
|
|
|
| 1 |
pandas
|
| 2 |
scikit-learn
|
| 3 |
+
pickle-mixin
|
| 4 |
gradio
|