Spaces:
Running
Running
from abc import ABC, abstractmethod | |
from pathlib import Path | |
from starlette.responses import FileResponse | |
class VisualizationService(ABC): | |
def create_pdf_visualization(self, pdf_path: Path, segment_boxes: list[dict]) -> Path: | |
pass | |
def get_visualization_response(self, pdf_path: Path) -> FileResponse: | |
pass | |