Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def read_root():
|
|
89 |
return {"status": "API is running"}
|
90 |
|
91 |
@app.post("/api/read_idcard")
|
92 |
-
async def read_idcard(image: UploadFile = File(...), image2: UploadFile = File(
|
93 |
try:
|
94 |
file_path1 = await save_upload_file(image)
|
95 |
|
|
|
89 |
return {"status": "API is running"}
|
90 |
|
91 |
@app.post("/api/read_idcard")
|
92 |
+
async def read_idcard(image: UploadFile = File(...), image2: UploadFile = File(None)):
|
93 |
try:
|
94 |
file_path1 = await save_upload_file(image)
|
95 |
|