Spaces:
Running
Running
Sandy2636
commited on
Commit
·
0875303
1
Parent(s):
8461ba5
Add application file
Browse files
app.py
CHANGED
@@ -13,7 +13,6 @@ def process_passport(image):
|
|
13 |
encoded_image = base64.b64encode(image.read()).decode("utf-8")
|
14 |
data_url = f"data:image/jpeg;base64,{encoded_image}"
|
15 |
|
16 |
-
# Adjust this prompt for passport info extraction
|
17 |
prompt = "Extract all visible information from the front page of the passport. Output in JSON format."
|
18 |
|
19 |
payload = {
|
|
|
13 |
encoded_image = base64.b64encode(image.read()).decode("utf-8")
|
14 |
data_url = f"data:image/jpeg;base64,{encoded_image}"
|
15 |
|
|
|
16 |
prompt = "Extract all visible information from the front page of the passport. Output in JSON format."
|
17 |
|
18 |
payload = {
|