Spaces:
Runtime error
Runtime error
Download app/api.py from pawanmau01/TestAPI: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/pawanmau01/TestAPI/resolve/59fbc5e8f49f8564d00b73b8b8e2b27fec773736/app/api.py
- Command line
-
hf download hf://spaces/pawanmau01/TestAPI@59fbc5e8f49f8564d00b73b8b8e2b27fec773736/app/api.py
-
curl -L -o api.py https://huggingface.co/spaces/pawanmau01/TestAPI/resolve/59fbc5e8f49f8564d00b73b8b8e2b27fec773736/app/api.py
434 Bytes
| from flask import Blueprint | |
| import requests | |
| import os | |
| from .routes.adhaarApi import ocrAdhaar | |
| from .routes.panApi import ocrPan | |
| ocr_bp = Blueprint('ocr', __name__) | |
| session = requests.Session() | |
| mode = os.getenv("PROJECT_MODE") | |
| def getResponse_Pan(): | |
| return ocrPan(mode, session) | |
| def getResponse_Adhaar(): | |
| return ocrAdhaar(mode, session) |