fix Ocr Host

This commit is contained in:
jxxghp
2023-08-30 19:00:48 +08:00
parent 3b7c1fed74
commit cce543274e
2 changed files with 4 additions and 1 deletions

View File

@ -1,11 +1,12 @@
import base64
from app.core.config import settings
from app.utils.http import RequestUtils
class OcrHelper:
_ocr_b64_url = "https://movie-pilot.org/captcha/base64"
_ocr_b64_url = f"{settings.OCR_HOST}/captcha/base64"
def get_captcha_text(self, image_url=None, image_b64=None, cookie=None, ua=None):
"""