File size: 434 Bytes
fb12fe1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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")

@ocr_bp.route('/ocrPan', methods=['POST'])
def getResponse_Pan():
    return ocrPan(mode, session)

@ocr_bp.route('/ocrAdhaar', methods=['POST'])
def getResponse_Adhaar():
    return ocrAdhaar(mode, session)