Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,6 +110,13 @@ class VoterCardVerifier:
|
|
110 |
|
111 |
# Interface Gradio
|
112 |
def create_interface():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
verifier = VoterCardVerifier()
|
114 |
|
115 |
def process(image, card_number: str):
|
@@ -120,12 +127,12 @@ def create_interface():
|
|
120 |
interface = gr.Interface(
|
121 |
fn=process,
|
122 |
inputs=[
|
123 |
-
gr.Image(type="pil", label="
|
124 |
-
gr.Textbox(label="
|
125 |
],
|
126 |
-
outputs=gr.Textbox(label="
|
127 |
-
title="
|
128 |
-
description=
|
129 |
)
|
130 |
|
131 |
return interface
|
|
|
110 |
|
111 |
# Interface Gradio
|
112 |
def create_interface():
|
113 |
+
description = (
|
114 |
+
"Card ID Counter is an application designed to count voter card numbers "
|
115 |
+
"by analyzing uploaded images using OCR technology. It ensures accuracy by "
|
116 |
+
"checking if the provided number appears on the card and confirming its from Cameroon.\n\n"
|
117 |
+
"🌟 **Code Repository**: [Card ID Counter GitHub](https://github.com/Nganga-AI/card-counter)"
|
118 |
+
)
|
119 |
+
|
120 |
verifier = VoterCardVerifier()
|
121 |
|
122 |
def process(image, card_number: str):
|
|
|
127 |
interface = gr.Interface(
|
128 |
fn=process,
|
129 |
inputs=[
|
130 |
+
gr.Image(type="pil", label="Upload ID Card Image"),
|
131 |
+
gr.Textbox(label="Card Number"),
|
132 |
],
|
133 |
+
outputs=gr.Textbox(label="Result"),
|
134 |
+
title="Voters ID Counter",
|
135 |
+
description=description,
|
136 |
)
|
137 |
|
138 |
return interface
|