Spaces:
Running
Running
fix($app): fix deprecated gradio methods
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ title = "Crowd Counter"
|
|
51 |
description = "<p style='text-align: center'>This is a Gradio demo for crowd counting using Kornia's Face Detection model.</p><p style='text-align: center'>To use it, simply upload your image, or click one of the examples to load them</p>"
|
52 |
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
|
53 |
href='https://kornia.readthedocs.io/en/latest/applications/face_detection.html' target='_blank'>Kornia Face Detection Tutorial</a></p>"""
|
54 |
-
outputs = [gr.
|
55 |
|
56 |
examples = ['sample.jpeg']
|
57 |
|
|
|
51 |
description = "<p style='text-align: center'>This is a Gradio demo for crowd counting using Kornia's Face Detection model.</p><p style='text-align: center'>To use it, simply upload your image, or click one of the examples to load them</p>"
|
52 |
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
|
53 |
href='https://kornia.readthedocs.io/en/latest/applications/face_detection.html' target='_blank'>Kornia Face Detection Tutorial</a></p>"""
|
54 |
+
outputs = [gr.Image(type="pil", label="Output Image"), gr.Textbox(label="Total (Head) Count")]
|
55 |
|
56 |
examples = ['sample.jpeg']
|
57 |
|