Skip to content

Commit 76fda77

Browse files
committed
refactor: remove/mv imports
1 parent ce2430b commit 76fda77

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

backend/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def startup(self):
7373
@modal.method()
7474
async def process_video(self, video_bytes: bytes, filename: str, job_id: str):
7575
"""Background video processing task - runs in its own container."""
76-
import time
7776
logger.info(f"[Job {job_id}] Processing started: {filename} ({len(video_bytes)} bytes)")
7877

7978
try:

backend/preprocessing/compressor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import logging
2-
from typing import Optional
32
import cv2
43
import numpy as np
54

6-
from models.metadata import VideoChunk
75

86
logging.basicConfig(level=logging.INFO)
97
logger = logging.getLogger(__name__)

backend/utils/uploader/text_uploader.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
from functools import cache
2020
from transformers import CLIPProcessor, CLIPModel
2121

22+
from database.pinecone_connector import PineconeConnector
23+
2224
# Setup paths to backend directory
2325
BACKEND_DIR = os.path.join(os.path.dirname(__file__), "../..")
2426
sys.path.insert(0, BACKEND_DIR)
2527

26-
from database.pinecone_connector import PineconeConnector
27-
28-
29-
# setup environment variables
28+
# Setup environment variables
3029
load_dotenv(os.path.join(BACKEND_DIR, ".env"))
3130
PINECONE_API_KEY = os.getenv("PINECONE_API_KEY")
3231
print(f"PINECONE_API_KEY: {'set' if PINECONE_API_KEY else 'not set'}")

0 commit comments

Comments
 (0)