Update app.py
Browse files
app.py
CHANGED
@@ -143,37 +143,37 @@ def predict_and_plot(velocity, temperature, precipitation, humidity):
|
|
143 |
return [plt.figure()] + ["Error"] * 18
|
144 |
|
145 |
inputs = [
|
146 |
-
gr.Slider(minimum=0, maximum=100, value=50, step=0.05, label="
|
147 |
-
gr.Slider(minimum=-2, maximum=30, value=0, step=0.5, label="
|
148 |
-
gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="
|
149 |
-
gr.Slider(minimum=0, maximum=100, value=50, label="
|
150 |
]
|
151 |
|
152 |
contamination_outputs = [
|
153 |
-
gr.Textbox(label="
|
154 |
-
gr.Textbox(label="
|
155 |
-
gr.Textbox(label="
|
156 |
-
gr.Textbox(label="
|
157 |
-
gr.Textbox(label="
|
158 |
-
gr.Textbox(label="
|
159 |
]
|
160 |
|
161 |
gradients_outputs = [
|
162 |
-
gr.Textbox(label="
|
163 |
-
gr.Textbox(label="
|
164 |
-
gr.Textbox(label="
|
165 |
-
gr.Textbox(label="
|
166 |
-
gr.Textbox(label="
|
167 |
-
gr.Textbox(label="
|
168 |
]
|
169 |
|
170 |
cleaning_time_outputs = [
|
171 |
-
gr.Textbox(label="
|
172 |
-
gr.Textbox(label="
|
173 |
-
gr.Textbox(label="
|
174 |
-
gr.Textbox(label="
|
175 |
-
gr.Textbox(label="
|
176 |
-
gr.Textbox(label="
|
177 |
]
|
178 |
|
179 |
with gr.Blocks(css=".column-container {height: 100%; display: flex; flex-direction: column; justify-content: space-between;}") as demo:
|
|
|
143 |
return [plt.figure()] + ["Error"] * 18
|
144 |
|
145 |
inputs = [
|
146 |
+
gr.Slider(minimum=0, maximum=100, value=50, step=0.05, label="속도 (mph)"),
|
147 |
+
gr.Slider(minimum=-2, maximum=30, value=0, step=0.5, label="온도 (°C)"),
|
148 |
+
gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="강수량 (inch)"),
|
149 |
+
gr.Slider(minimum=0, maximum=100, value=50, label="습도 (%)")
|
150 |
]
|
151 |
|
152 |
contamination_outputs = [
|
153 |
+
gr.Textbox(label="앞 왼쪽 오염도"),
|
154 |
+
gr.Textbox(label="앞 오른쪽 오염도"),
|
155 |
+
gr.Textbox(label="왼쪽 오염도"),
|
156 |
+
gr.Textbox(label="오른쪽 오염도"),
|
157 |
+
gr.Textbox(label="지붕 오염도"),
|
158 |
+
gr.Textbox(label="뒤 오염도")
|
159 |
]
|
160 |
|
161 |
gradients_outputs = [
|
162 |
+
gr.Textbox(label="앞 왼쪽 기울기"),
|
163 |
+
gr.Textbox(label="앞 오른쪽 기울기"),
|
164 |
+
gr.Textbox(label="왼쪽 기울기"),
|
165 |
+
gr.Textbox(label="오른쪽 기울기"),
|
166 |
+
gr.Textbox(label="지붕 기울기"),
|
167 |
+
gr.Textbox(label="뒤 기울기")
|
168 |
]
|
169 |
|
170 |
cleaning_time_outputs = [
|
171 |
+
gr.Textbox(label="앞 왼쪽 청소 시간"),
|
172 |
+
gr.Textbox(label="앞 오른쪽 청소 시간"),
|
173 |
+
gr.Textbox(label="왼쪽 청소 시간"),
|
174 |
+
gr.Textbox(label="오른쪽 청소 시간"),
|
175 |
+
gr.Textbox(label="지붕 청소 시간"),
|
176 |
+
gr.Textbox(label="뒤 청소 시간")
|
177 |
]
|
178 |
|
179 |
with gr.Blocks(css=".column-container {height: 100%; display: flex; flex-direction: column; justify-content: space-between;}") as demo:
|