Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
fix: cache directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jonafeucht committed Mar 1, 2024
1 parent 85ca9e0 commit 8be2125
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
ports:
- "8000:8000"
volumes:
- models:/app/models:rw
- models:/root/.cache/huggingface/hub:rw
environment:
- DEFAULT_MODEL_NAME
- ACCESS_TOKEN
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
ports:
- "8000:8000"
volumes:
- models:/app/models:rw
- models:/root/.cache/huggingface/hub:rw
environment:
- DEFAULT_MODEL_NAME
- ACCESS_TOKEN
Expand All @@ -16,4 +16,4 @@ services:
restart: unless-stopped

volumes:
models:
models:
3 changes: 0 additions & 3 deletions src/routes/api/video_classification.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import cv2
import os
from fastapi import APIRouter, UploadFile, File, Query, Depends
from dotenv import load_dotenv
from typing import List
import base64
import asyncio
Expand All @@ -15,8 +14,6 @@

executor = ThreadPoolExecutor()

load_dotenv()


def process_video(
classifier,
Expand Down

0 comments on commit 8be2125

Please sign in to comment.