File size: 373 Bytes
2e237ce
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from abc import ABC, abstractmethod
from pathlib import Path
from starlette.responses import FileResponse


class VisualizationService(ABC):
    @abstractmethod
    def create_pdf_visualization(self, pdf_path: Path, segment_boxes: list[dict]) -> Path:
        pass

    @abstractmethod
    def get_visualization_response(self, pdf_path: Path) -> FileResponse:
        pass