Skip to content

Commit

Permalink
feat: no relativ imports api
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasellinger committed Oct 21, 2024
1 parent f6101bc commit d82a95f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/core.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datasets import load_dataset

from pydantic_models import Example
from pipeline import ProgressPipeline
from api.pydantic_models import Example
from api.pipeline import ProgressPipeline
from pipeline_module.evidence_selector import ModelEvidenceSelector
from pipeline_module.statement_verifier import ModelStatementVerifier
from pipeline_module.evidence_fetcher import WikipediaEvidenceFetcher
Expand Down
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from routes import router as api_router
from api.routes import router as api_router

app = FastAPI()

Expand Down
6 changes: 3 additions & 3 deletions api/routes.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import List

from fastapi import APIRouter, HTTPException, WebSocket
from pydantic_models import VerificationRequest, VerificationResponse, Dataset, Example
from core import pipeline
from core import datasets
from api.pydantic_models import VerificationRequest, VerificationResponse, Dataset, Example
from api.core import pipeline
from api.core import datasets
from starlette.websockets import WebSocketDisconnect
import json

Expand Down

0 comments on commit d82a95f

Please sign in to comment.