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