Skip to content

Commit

Permalink
Set output dir as cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0517 committed Nov 26, 2024
1 parent 7c26e87 commit fad840f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/routers/transcription/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from sqlalchemy.orm import Session
from datetime import datetime
from modules.whisper.data_classes import *
from modules.utils.paths import BACKEND_CACHE_DIR
from modules.whisper.faster_whisper_inference import FasterWhisperInference
from backend.common.audio import read_audio
from backend.common.models import QueueResponse
Expand All @@ -28,7 +29,9 @@
@functools.lru_cache
def get_pipeline() -> 'FasterWhisperInference':
config = load_server_config()["whisper"]
inferencer = FasterWhisperInference()
inferencer = FasterWhisperInference(
output_dir=BACKEND_CACHE_DIR
)
inferencer.update_model(
model_size=config["model_size"],
compute_type=config["compute_type"]
Expand Down

0 comments on commit fad840f

Please sign in to comment.