Spaces:
Running
Running
Sandy2636
commited on
Commit
·
b5e6b55
1
Parent(s):
3b26f60
Add application file
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def process_passport(image):
|
|
44 |
iface = gr.Interface(
|
45 |
fn=process_passport,
|
46 |
inputs=gr.Image(type="filepath", label="Upload Passport Front"),
|
47 |
-
outputs=gr.Code(label="
|
48 |
title="Passport Front Image Extractor",
|
49 |
-
description="Upload a front image of a passport. The app will
|
50 |
)
|
51 |
|
52 |
if __name__ == "__main__":
|
|
|
44 |
iface = gr.Interface(
|
45 |
fn=process_passport,
|
46 |
inputs=gr.Image(type="filepath", label="Upload Passport Front"),
|
47 |
+
outputs=gr.Code(label="JSON Result", language="json"),
|
48 |
title="Passport Front Image Extractor",
|
49 |
+
description="Upload a front image of a passport. The app will extract the visible details and return the result as JSON."
|
50 |
)
|
51 |
|
52 |
if __name__ == "__main__":
|