saba000farahani commited on
Commit
c35be75
·
verified ·
1 Parent(s): df393bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -176,20 +176,18 @@ cleaning_time_outputs = [
176
  gr.Textbox(label="Rear Cleaning Time")
177
  ]
178
 
179
- with gr.Blocks(css=".flex-container {display: flex; flex-direction: column; justify-content: space-between; height: 100%;}") 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="flex-container"):
186
- with gr.Row():
187
- gr.Markdown("### Input Parameters")
188
- for inp in inputs:
189
- inp.render()
190
- with gr.Row():
191
- submit_button = gr.Button(value="Submit", variant="primary")
192
- clear_button = gr.Button(value="Clear")
193
 
194
  with gr.Column(scale=1):
195
  gr.Image(image_path)
 
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:
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.Image(image_path)