saba000farahani commited on
Commit
a13f167
·
verified ·
1 Parent(s): 16932e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -22
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="Velocity (mph)"),
147
- gr.Slider(minimum=-2, maximum=30, value=0, step=0.5, label="Temperature (°C)"),
148
- gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="Precipitation (inch)"),
149
- gr.Slider(minimum=0, maximum=100, value=50, label="Humidity (%)")
150
  ]
151
 
152
  contamination_outputs = [
153
- gr.Textbox(label="Front Left Contamination"),
154
- gr.Textbox(label="Front Right Contamination"),
155
- gr.Textbox(label="Left Contamination"),
156
- gr.Textbox(label="Right Contamination"),
157
- gr.Textbox(label="Roof Contamination"),
158
- gr.Textbox(label="Rear Contamination")
159
  ]
160
 
161
  gradients_outputs = [
162
- gr.Textbox(label="Front Left Gradient"),
163
- gr.Textbox(label="Front Right Gradient"),
164
- gr.Textbox(label="Left Gradient"),
165
- gr.Textbox(label="Right Gradient"),
166
- gr.Textbox(label="Roof Gradient"),
167
- gr.Textbox(label="Rear Gradient")
168
  ]
169
 
170
  cleaning_time_outputs = [
171
- gr.Textbox(label="Front Left Cleaning Time"),
172
- gr.Textbox(label="Front Right Cleaning Time"),
173
- gr.Textbox(label="Left Cleaning Time"),
174
- gr.Textbox(label="Right Cleaning Time"),
175
- gr.Textbox(label="Roof Cleaning Time"),
176
- gr.Textbox(label="Rear Cleaning Time")
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: