Update app.py
Browse files
app.py
CHANGED
@@ -176,20 +176,18 @@ cleaning_time_outputs = [
|
|
176 |
gr.Textbox(label="Rear Cleaning Time")
|
177 |
]
|
178 |
|
179 |
-
with gr.Blocks(css=".
|
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="
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
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)
|