Spaces:
Sleeping
Sleeping
remove api key to test
Browse files
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"
|
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 |
|