Update app.py
Browse files
app.py
CHANGED
|
@@ -176,18 +176,20 @@ 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 |
-
gr.
|
| 187 |
-
|
| 188 |
-
inp
|
| 189 |
-
|
| 190 |
-
|
|
|
|
|
|
|
| 191 |
|
| 192 |
with gr.Column(scale=1):
|
| 193 |
gr.Image(image_path)
|
|
|
|
| 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)
|