Spaces:
Sleeping
Sleeping
Tadeas Kosek commited on
Commit ·
2ddc19d
1
Parent(s): f1a7e59
revert depends removal
Browse files1234512 unmodified lines181920212223242529 unmodified lines5556575859606162"""Job management API routes."""from fastapi import APIRouter, HTTPException, Request, Pathfrom fastapi.responses import FileResponsefrom typing import Any12 unmodified lines404: {"description": "Job not found"}})async def get_job_status(job_id: str = Path(..., description="The job ID returned from the extraction endpoint"),use_cases: UseCases):"""Get the status of a background processing job."""try:29 unmodified lines404: {"description": "Job not found"}})async def download_job_result(job_id: str = Path(..., description="The job ID of the completed extraction"),use_cases: UseCases):"""Download the result of a completed job."""try:1234512 unmodified lines181920212223242529 unmodified lines5556575859606162"""Job management API routes."""from fastapi import APIRouter, Depends, HTTPException, Request, Pathfrom fastapi.responses import FileResponsefrom typing import Any12 unmodified lines404: {"description": "Job not found"}})async def get_job_status(use_cases: UseCases,job_id: str = Path(..., description="The job ID returned from the extraction endpoint")):"""Get the status of a background processing job."""try:29 unmodified lines404: {"description": "Job not found"}})async def download_job_result(use_cases: UseCases,job_id: str = Path(..., description="The job ID of the completed extraction")):"""Download the result of a completed job."""try:
interfaces/api/routes/job_routes.py+5-5