saba000farahani
commited on
Commit
•
945e3c9
1
Parent(s):
6dff48f
Update app.py
Browse files
app.py
CHANGED
@@ -176,20 +176,20 @@ cleaning_time_outputs = [
|
|
176 |
gr.Textbox(label="Rear Cleaning Time")
|
177 |
]
|
178 |
|
179 |
-
with gr.Blocks() 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):
|
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)
|
194 |
|
195 |
# Bottom Section: Outputs (Three columns)
|
|
|
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)
|
194 |
|
195 |
# Bottom Section: Outputs (Three columns)
|