saba000farahani commited on
Commit
1dc2f8e
ยท
verified ยท
1 Parent(s): a13f167

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -176,43 +176,44 @@ cleaning_time_outputs = [
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:
180
- gr.Markdown("<h1 style='text-align: center;'>Environmental Factor-Based Contamination, Gradient, & Cleaning Time Prediction</h1>")
181
- gr.Markdown("This application predicts the contamination levels, gradients, and cleaning times for different parts of a car's LiDAR system based on environmental factors such as velocity, temperature, precipitation, and humidity.")
182
 
183
  # Top Section: Inputs and Car Image
184
  with gr.Row():
185
  with gr.Column(scale=2, elem_classes="column-container"):
186
- gr.Markdown("### Input Parameters")
187
  for inp in inputs:
188
  inp.render()
189
- submit_button = gr.Button(value="Submit", variant="primary")
190
- clear_button = gr.Button(value="Clear")
191
 
192
  with gr.Column(scale=1):
193
- gr.Markdown("### Location of LiDARs")
194
  gr.Image(image_path)
195
 
196
  # Bottom Section: Outputs (Three columns)
197
  with gr.Row():
198
  with gr.Column(scale=2):
199
- gr.Markdown("### Contamination Predictions")
200
  for out in contamination_outputs:
201
  out.render()
202
 
203
  with gr.Column(scale=2):
204
- gr.Markdown("### Gradient Predictions")
205
  for out in gradients_outputs:
206
  out.render()
207
 
208
  with gr.Column(scale=2):
209
- gr.Markdown("### Cleaning Time Predictions")
210
  for out in cleaning_time_outputs:
211
  out.render()
212
 
213
  # Graph below the outputs
214
  with gr.Row():
215
- plot_output = gr.Plot(label="Contamination Levels Over Time")
216
 
217
  submit_button.click(
218
  fn=predict_and_plot,
@@ -222,3 +223,4 @@ with gr.Blocks(css=".column-container {height: 100%; display: flex; flex-directi
222
  clear_button.click(fn=lambda: None)
223
 
224
  demo.launch()
 
 
176
  gr.Textbox(label="๋’ค ์ฒญ์†Œ ์‹œ๊ฐ„")
177
  ]
178
 
179
+
180
  with gr.Blocks(css=".column-container {height: 100%; display: flex; flex-direction: column; justify-content: space-between;}") as demo:
181
+ gr.Markdown("<h1 style='text-align: center;'>ํ™˜๊ฒฝ ์š”์ธ ๊ธฐ๋ฐ˜ ์˜ค์—ผ๋„, ๊ธฐ์šธ๊ธฐ ๋ฐ ์ฒญ์†Œ ์‹œ๊ฐ„ ์˜ˆ์ธก</h1>")
182
+ gr.Markdown("์ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์€ ์†๋„, ์˜จ๋„, ๊ฐ•์ˆ˜๋Ÿ‰ ๋ฐ ์Šต๋„์™€ ๊ฐ™์€ ํ™˜๊ฒฝ ์š”์ธ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ์ž๋™์ฐจ์˜ LiDAR ์‹œ์Šคํ…œ์˜ ๋‹ค์–‘ํ•œ ๋ถ€์œ„์— ๋Œ€ํ•œ ์˜ค์—ผ๋„, ๊ธฐ์šธ๊ธฐ ๋ฐ ์ฒญ์†Œ ์‹œ๊ฐ„์„ ์˜ˆ์ธกํ•ฉ๋‹ˆ๋‹ค.")
183
 
184
  # Top Section: Inputs and Car Image
185
  with gr.Row():
186
  with gr.Column(scale=2, elem_classes="column-container"):
187
+ gr.Markdown("### ์ž…๋ ฅ ๋งค๊ฐœ๋ณ€์ˆ˜")
188
  for inp in inputs:
189
  inp.render()
190
+ submit_button = gr.Button(value="์ œ์ถœ", variant="primary")
191
+ clear_button = gr.Button(value="์ดˆ๊ธฐํ™”")
192
 
193
  with gr.Column(scale=1):
194
+ gr.Markdown("### LiDAR ์œ„์น˜")
195
  gr.Image(image_path)
196
 
197
  # Bottom Section: Outputs (Three columns)
198
  with gr.Row():
199
  with gr.Column(scale=2):
200
+ gr.Markdown("### ์˜ค์—ผ๋„ ์˜ˆ์ธก")
201
  for out in contamination_outputs:
202
  out.render()
203
 
204
  with gr.Column(scale=2):
205
+ gr.Markdown("### ๊ธฐ์šธ๊ธฐ ์˜ˆ์ธก")
206
  for out in gradients_outputs:
207
  out.render()
208
 
209
  with gr.Column(scale=2):
210
+ gr.Markdown("### ์ฒญ์†Œ ์‹œ๊ฐ„ ์˜ˆ์ธก")
211
  for out in cleaning_time_outputs:
212
  out.render()
213
 
214
  # Graph below the outputs
215
  with gr.Row():
216
+ plot_output = gr.Plot(label="์‹œ๊ฐ„ ๊ฒฝ๊ณผ์— ๋”ฐ๋ฅธ ์˜ค์—ผ๋„")
217
 
218
  submit_button.click(
219
  fn=predict_and_plot,
 
223
  clear_button.click(fn=lambda: None)
224
 
225
  demo.launch()
226
+