minhpng commited on
Commit
9c68228
·
1 Parent(s): bfe9fac

remove api key to test

Browse files
Files changed (1) hide show
  1. routers/get_transcript.py +2 -1
routers/get_transcript.py CHANGED
@@ -9,8 +9,9 @@ router = APIRouter(prefix="/get-transcript", tags=["transcript"])
9
  # model_size: distil-large-v2
10
  # model_size: distil-large-v3
11
 
 
12
  @router.get("/")
13
- def get_transcript(audio_path: str, model_size: str = "distil-large-v3", api_key: str = Depends(get_api_key)):
14
  # Run on GPU with FP16
15
  # model = WhisperModel(model_size, device="cuda", compute_type="float16")
16
 
 
9
  # model_size: distil-large-v2
10
  # model_size: distil-large-v3
11
 
12
+ # api_key: str = Depends(get_api_key)
13
  @router.get("/")
14
+ def get_transcript(audio_path: str, model_size: str = "distil-large-v3"):
15
  # Run on GPU with FP16
16
  # model = WhisperModel(model_size, device="cuda", compute_type="float16")
17