Spaces:
Sleeping
Sleeping
muhammadhamza-stack
commited on
Commit
·
38d3d04
1
Parent(s):
bb9a613
update app.py
Browse files
app.py
CHANGED
|
@@ -206,12 +206,16 @@ with gr.Blocks(title="Coin Detector") as iface:
|
|
| 206 |
# 2. Input/Output Layout
|
| 207 |
with gr.Row():
|
| 208 |
with gr.Column(scale=1):
|
|
|
|
| 209 |
input_img = gr.Image(label="Input Image", type="filepath")
|
|
|
|
| 210 |
confidence_slider = gr.Slider(minimum=0, maximum=1, value=0.5, label="Confidence Threshold", step=0.01)
|
|
|
|
| 211 |
submit_btn = gr.Button("Detect Coins", variant="primary")
|
| 212 |
|
| 213 |
with gr.Column(scale=2):
|
| 214 |
-
|
|
|
|
| 215 |
|
| 216 |
|
| 217 |
# 3. Example Data (if available, added here for completeness)
|
|
|
|
| 206 |
# 2. Input/Output Layout
|
| 207 |
with gr.Row():
|
| 208 |
with gr.Column(scale=1):
|
| 209 |
+
gr.Markdown("## Step 1: Upload an Image Having Coin")
|
| 210 |
input_img = gr.Image(label="Input Image", type="filepath")
|
| 211 |
+
gr.Markdown("## Step 2: Set the Confidence Threshold (Optional) ")
|
| 212 |
confidence_slider = gr.Slider(minimum=0, maximum=1, value=0.5, label="Confidence Threshold", step=0.01)
|
| 213 |
+
gr.Markdown("## Step 3: Click Detect Coins Button")
|
| 214 |
submit_btn = gr.Button("Detect Coins", variant="primary")
|
| 215 |
|
| 216 |
with gr.Column(scale=2):
|
| 217 |
+
gr.Markdown("## Result ")
|
| 218 |
+
output_img = gr.Image(label="Detected Coins ")
|
| 219 |
|
| 220 |
|
| 221 |
# 3. Example Data (if available, added here for completeness)
|