Adjust section-1 layout: output near upload and controls below
Browse files
app.py
CHANGED
|
@@ -261,16 +261,17 @@ with gr.Blocks(css=CUSTOM_CSS, title="Klasifikasi Kehadiran Mahasiswa - YOLOv8")
|
|
| 261 |
|
| 262 |
with gr.Column(elem_classes=["section-box"]):
|
| 263 |
gr.Markdown("## Section 1 - Validasi Satu Gambar")
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
|
|
|
|
|
|
|
|
|
| 269 |
attendance_input = gr.Number(label="Jumlah Presensi", value=0, precision=0, minimum=0)
|
| 270 |
conf_input = gr.Slider(0.1, 1.0, value=0.25, step=0.05, label="Confidence Threshold")
|
| 271 |
run_btn = gr.Button("Proses Klasifikasi", variant="primary")
|
| 272 |
-
output_image = gr.Image(label="Hasil Deteksi", type="numpy")
|
| 273 |
-
output_summary = gr.Textbox(label="Ringkasan", lines=5, interactive=False)
|
| 274 |
|
| 275 |
with gr.Column(elem_classes=["section-box"]):
|
| 276 |
gr.Markdown("## Section 2 - Evaluasi Batch Klasifikasi")
|
|
|
|
| 261 |
|
| 262 |
with gr.Column(elem_classes=["section-box"]):
|
| 263 |
gr.Markdown("## Section 1 - Validasi Satu Gambar")
|
| 264 |
+
with gr.Row():
|
| 265 |
+
image_input = gr.Image(
|
| 266 |
+
label="Upload/Kamera - Gambar Kelas",
|
| 267 |
+
type="numpy",
|
| 268 |
+
sources=["upload", "webcam"],
|
| 269 |
+
)
|
| 270 |
+
output_image = gr.Image(label="Hasil Proses (Dekat Upload)", type="numpy")
|
| 271 |
+
output_summary = gr.Textbox(label="Ringkasan", lines=5, interactive=False)
|
| 272 |
attendance_input = gr.Number(label="Jumlah Presensi", value=0, precision=0, minimum=0)
|
| 273 |
conf_input = gr.Slider(0.1, 1.0, value=0.25, step=0.05, label="Confidence Threshold")
|
| 274 |
run_btn = gr.Button("Proses Klasifikasi", variant="primary")
|
|
|
|
|
|
|
| 275 |
|
| 276 |
with gr.Column(elem_classes=["section-box"]):
|
| 277 |
gr.Markdown("## Section 2 - Evaluasi Batch Klasifikasi")
|