rwheel commited on
Commit
eb0c80a
1 Parent(s): b522580

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -70,15 +70,13 @@ title = "Kornia Edge Detection"
70
  description = "<p style='text-align: center'>This is a Gradio demo for Kornia's Edge Detection.</p><p style='text-align: center'>To use it, simply upload your image, or click one of the examples to load them, and select any edge detector to run it! Read more at the links at the bottom.</p>"
71
  article = "<p style='text-align: center'><a href='https://kornia.readthedocs.io/en/latest/' target='_blank'>Kornia Docs</a> | <a href='https://github.com/kornia/kornia' target='_blank'>Kornia Github Repo</a> | <a href='https://kornia-tutorials.readthedocs.io/en/latest/filtering_edges.html' target='_blank'>Kornia Edge Detection Tutorial</a></p>"
72
 
73
- iface = gr.Interface(fn=edge_detection,
74
- inputs=[gr.Image(type="filepath"),
75
- gr.Dropdown(choices=["1st order derivates in x", "1st order derivates in y",
76
- "2nd order derivatives in x", "2nd order derivatives in y",
77
- "Sobel", "Laplacian", "Canny"],
78
- value="1st order derivates in x")
79
- ],
80
- outputs="image",
81
- examples=examples
82
 
83
  )
84
 
 
70
  description = "<p style='text-align: center'>This is a Gradio demo for Kornia's Edge Detection.</p><p style='text-align: center'>To use it, simply upload your image, or click one of the examples to load them, and select any edge detector to run it! Read more at the links at the bottom.</p>"
71
  article = "<p style='text-align: center'><a href='https://kornia.readthedocs.io/en/latest/' target='_blank'>Kornia Docs</a> | <a href='https://github.com/kornia/kornia' target='_blank'>Kornia Github Repo</a> | <a href='https://kornia-tutorials.readthedocs.io/en/latest/filtering_edges.html' target='_blank'>Kornia Edge Detection Tutorial</a></p>"
72
 
73
+ iface = gr.Interface(edge_detection,
74
+ [
75
+ gr.Image(type="filepath"),
76
+ gr.Dropdown(choices=["1st order derivates in x", "1st order derivates in y", "2nd order derivatives in x", "2nd order derivatives in y", "Sobel", "Laplacian", "Canny"], value="1st order derivates in x")
77
+ ],
78
+ "image",
79
+ examples
 
 
80
 
81
  )
82