Update app.py
Browse files
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;'
|
181 |
-
gr.Markdown("
|
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("###
|
187 |
for inp in inputs:
|
188 |
inp.render()
|
189 |
-
submit_button = gr.Button(value="
|
190 |
-
clear_button = gr.Button(value="
|
191 |
|
192 |
with gr.Column(scale=1):
|
193 |
-
gr.Markdown("###
|
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("###
|
200 |
for out in contamination_outputs:
|
201 |
out.render()
|
202 |
|
203 |
with gr.Column(scale=2):
|
204 |
-
gr.Markdown("###
|
205 |
for out in gradients_outputs:
|
206 |
out.render()
|
207 |
|
208 |
with gr.Column(scale=2):
|
209 |
-
gr.Markdown("###
|
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="
|
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 |
+
|