Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -21,11 +21,11 @@ def get_api_key(api_key: Optional[str] = Depends(api_key_header)):
|
|
| 21 |
|
| 22 |
@app.post("/api/ocr", response_model=dict)
|
| 23 |
async def ocr(
|
|
|
|
| 24 |
image: UploadFile = File(...),
|
| 25 |
# languages: list = Body(["eng"])
|
| 26 |
-
request: Request,
|
| 27 |
# body: dict = Body(...),
|
| 28 |
-
api_key: str = Depends(get_api_key),
|
| 29 |
):
|
| 30 |
# print("[where?] outside try block")
|
| 31 |
# print("[image]", image)
|
|
|
|
| 21 |
|
| 22 |
@app.post("/api/ocr", response_model=dict)
|
| 23 |
async def ocr(
|
| 24 |
+
api_key: str = Depends(get_api_key),
|
| 25 |
image: UploadFile = File(...),
|
| 26 |
# languages: list = Body(["eng"])
|
| 27 |
+
# request: Request,
|
| 28 |
# body: dict = Body(...),
|
|
|
|
| 29 |
):
|
| 30 |
# print("[where?] outside try block")
|
| 31 |
# print("[image]", image)
|