Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
know-one-1
commited on
Commit
•
347bc60
1
Parent(s):
68aa139
layout change
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def laplacian_edge_detector(file, kernel_size=5):
|
|
49 |
|
50 |
|
51 |
examples = [
|
52 |
-
["examples/doraemon.
|
53 |
]
|
54 |
|
55 |
title = "Kornia Edge Detector"
|
@@ -117,7 +117,7 @@ with gr.Blocks() as demo:
|
|
117 |
)
|
118 |
Button = gr.Button("Detect")
|
119 |
|
120 |
-
radio.change(fn=change_kernel, inputs=radio, outputs=
|
121 |
radio.change(fn=change_order, inputs=radio, outputs=order)
|
122 |
radio.change(fn=change_button, inputs=radio, outputs=Button)
|
123 |
gr.Examples(examples, inputs=[image_input])
|
|
|
49 |
|
50 |
|
51 |
examples = [
|
52 |
+
["examples/doraemon.png"],
|
53 |
]
|
54 |
|
55 |
title = "Kornia Edge Detector"
|
|
|
117 |
)
|
118 |
Button = gr.Button("Detect")
|
119 |
|
120 |
+
radio.change(fn=change_kernel, inputs=radio, outputs=kernel)
|
121 |
radio.change(fn=change_order, inputs=radio, outputs=order)
|
122 |
radio.change(fn=change_button, inputs=radio, outputs=Button)
|
123 |
gr.Examples(examples, inputs=[image_input])
|