Spaces:
Running
Running
Commit
·
1104379
1
Parent(s):
7991981
Fix: interface layout
Browse files
app.py
CHANGED
@@ -84,6 +84,7 @@ def process_image(choice, yolo_versions=["yolov5"]):
|
|
84 |
with gr.Blocks() as interface:
|
85 |
gr.Markdown("# XAI: Visualize Object Detection of Your Models")
|
86 |
gr.Markdown("Select a sample image or upload your own image to visualize object detection.")
|
|
|
87 |
with gr.Row(): # Row layout to divide the screen into two sections
|
88 |
with gr.Column(): # Left section for image selection and upload
|
89 |
# Radio button with default value set
|
@@ -125,6 +126,7 @@ with gr.Blocks() as interface:
|
|
125 |
|
126 |
# Right section for image display
|
127 |
with gr.Column():
|
|
|
128 |
result_gallery = gr.Gallery(label="Results", elem_id="gallery", rows=2, height=500)
|
129 |
|
130 |
# Use the uploaded image if available, otherwise the selected sample
|
|
|
84 |
with gr.Blocks() as interface:
|
85 |
gr.Markdown("# XAI: Visualize Object Detection of Your Models")
|
86 |
gr.Markdown("Select a sample image or upload your own image to visualize object detection.")
|
87 |
+
|
88 |
with gr.Row(): # Row layout to divide the screen into two sections
|
89 |
with gr.Column(): # Left section for image selection and upload
|
90 |
# Radio button with default value set
|
|
|
126 |
|
127 |
# Right section for image display
|
128 |
with gr.Column():
|
129 |
+
# Results section now below the image selection and model selection
|
130 |
result_gallery = gr.Gallery(label="Results", elem_id="gallery", rows=2, height=500)
|
131 |
|
132 |
# Use the uploaded image if available, otherwise the selected sample
|