Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,14 +67,7 @@ with gr.Blocks() as iface:
|
|
67 |
gr.Markdown("Compare standard YOLOv8 model (left) with Fine-tuned model (right)")
|
68 |
|
69 |
with gr.Column():
|
70 |
-
#
|
71 |
-
gr.Image("test_image.jpg", label="Example Image", height=100, interactive=False)
|
72 |
-
|
73 |
-
input_image = gr.Image(type="pil", label="Input Image", height=200)
|
74 |
-
submit_btn = gr.Button("Compare Models")
|
75 |
-
output_image = gr.Image(type="numpy", label="Comparison Result", height=400)
|
76 |
-
|
77 |
-
# Add example functionality
|
78 |
gr.Examples(
|
79 |
examples=[["test_image.jpg"]],
|
80 |
inputs=input_image,
|
@@ -82,6 +75,10 @@ with gr.Blocks() as iface:
|
|
82 |
fn=compare_models,
|
83 |
cache_examples=True
|
84 |
)
|
|
|
|
|
|
|
|
|
85 |
|
86 |
submit_btn.click(
|
87 |
fn=compare_models,
|
|
|
67 |
gr.Markdown("Compare standard YOLOv8 model (left) with Fine-tuned model (right)")
|
68 |
|
69 |
with gr.Column():
|
70 |
+
# Examples section at the top
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
gr.Examples(
|
72 |
examples=[["test_image.jpg"]],
|
73 |
inputs=input_image,
|
|
|
75 |
fn=compare_models,
|
76 |
cache_examples=True
|
77 |
)
|
78 |
+
|
79 |
+
input_image = gr.Image(type="pil", label="Input Image", height=200)
|
80 |
+
submit_btn = gr.Button("Compare Models")
|
81 |
+
output_image = gr.Image(type="numpy", label="Comparison Result", height=400)
|
82 |
|
83 |
submit_btn.click(
|
84 |
fn=compare_models,
|