(file: UploadFile = File(...))
| 62 | |
| 63 | @app.post("/ocr") |
| 64 | def process_ocr(file: UploadFile = File(...)): |
| 65 | file_bytes = file.file.read() |
| 66 | image = Image.open(BytesIO(file_bytes)) |
| 67 | return recognizer.recognize(image) |
| 68 | |
| 69 | |
| 70 | @app.websocket("/ocr_ws/{client_id}") |
nothing calls this directly
no outgoing calls
no test coverage detected