Trae Bot commited on
Commit ·
2e1ee73
1
Parent(s): c481f8a
Fix relative import errors for HuggingFace deployment
Browse files- service/api.py +1 -1
- service/health.py +2 -2
- service/runner.py +1 -1
service/api.py
CHANGED
|
@@ -10,7 +10,7 @@ from fastapi import APIRouter, BackgroundTasks, File, Form, Query, Request, Uplo
|
|
| 10 |
from fastapi.responses import PlainTextResponse
|
| 11 |
from loguru import logger
|
| 12 |
|
| 13 |
-
from
|
| 14 |
from .errors import ApiException
|
| 15 |
from .health import build_health_data
|
| 16 |
from .metrics import build_prometheus_text
|
|
|
|
| 10 |
from fastapi.responses import PlainTextResponse
|
| 11 |
from loguru import logger
|
| 12 |
|
| 13 |
+
from importer import ExcelParseError, UnsupportedTemplateError, import_excel_bytes
|
| 14 |
from .errors import ApiException
|
| 15 |
from .health import build_health_data
|
| 16 |
from .metrics import build_prometheus_text
|
service/health.py
CHANGED
|
@@ -6,8 +6,8 @@ import tempfile
|
|
| 6 |
from pathlib import Path
|
| 7 |
from typing import Any, Dict, Tuple
|
| 8 |
|
| 9 |
-
from
|
| 10 |
-
from
|
| 11 |
from .config import ServiceConfig
|
| 12 |
from .runner import TaskRunner
|
| 13 |
from .tasks import IN_PROGRESS_STATUSES, TaskStatus
|
|
|
|
| 6 |
from pathlib import Path
|
| 7 |
from typing import Any, Dict, Tuple
|
| 8 |
|
| 9 |
+
from engines import mediacrawler as engine_b
|
| 10 |
+
from engines.spider_xhs import SpiderXHSEngine
|
| 11 |
from .config import ServiceConfig
|
| 12 |
from .runner import TaskRunner
|
| 13 |
from .tasks import IN_PROGRESS_STATUSES, TaskStatus
|
service/runner.py
CHANGED
|
@@ -24,7 +24,7 @@ from .config import ServiceConfig
|
|
| 24 |
from .stability_controller import StabilityController, CaptchaSolverHook, CaptchaChallenge, CaptchaSolution
|
| 25 |
from .storage import LocalJsonStorage
|
| 26 |
from .tasks import CallbackState, CallbackStatus, TaskStatus
|
| 27 |
-
from
|
| 28 |
|
| 29 |
class AgenticCaptchaSolver(CaptchaSolverHook):
|
| 30 |
def __init__(self):
|
|
|
|
| 24 |
from .stability_controller import StabilityController, CaptchaSolverHook, CaptchaChallenge, CaptchaSolution
|
| 25 |
from .storage import LocalJsonStorage
|
| 26 |
from .tasks import CallbackState, CallbackStatus, TaskStatus
|
| 27 |
+
from engines import MediaCrawlerEngine, SpiderXHSEngine
|
| 28 |
|
| 29 |
class AgenticCaptchaSolver(CaptchaSolverHook):
|
| 30 |
def __init__(self):
|