Spaces:
Running
Running
add github link
Browse files
app.py
CHANGED
@@ -88,12 +88,20 @@ def decode_label(mat, chars) -> str:
|
|
88 |
res = ''.join(best_chars_collapsed)
|
89 |
return res
|
90 |
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
interface = gr.Interface(
|
93 |
fn=inference,
|
94 |
inputs="image",
|
95 |
outputs="text",
|
96 |
-
title=
|
|
|
97 |
examples=get_sample_images(),
|
98 |
)
|
99 |
interface.launch()
|
|
|
88 |
res = ''.join(best_chars_collapsed)
|
89 |
return res
|
90 |
|
91 |
+
_TITLE = '''South Korean License Plate Recognition'''
|
92 |
+
_DESCRIPTION = '''
|
93 |
+
<div>
|
94 |
+
<p style="text-align: center; font-size: 1.3em">This is a demo of South Korean License Plate Recognition.
|
95 |
+
<a style="display:inline-block; margin-left: .5em" href='https://github.com/noahzhy/KR_LPR_TF/'><img src='https://img.shields.io/github/stars/noahzhy/KR_LPR_TF?style=social' /></a>
|
96 |
+
</p>
|
97 |
+
</div>
|
98 |
+
'''
|
99 |
interface = gr.Interface(
|
100 |
fn=inference,
|
101 |
inputs="image",
|
102 |
outputs="text",
|
103 |
+
title=_TITLE,
|
104 |
+
description=_DESCRIPTION,
|
105 |
examples=get_sample_images(),
|
106 |
)
|
107 |
interface.launch()
|