Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from datasets import load_dataset
|
|
4 |
from fastapi import FastAPI, Request, HTTPException
|
5 |
import librosa
|
6 |
import io
|
7 |
-
whisper = pipeline("automatic-speech-recognition", "
|
8 |
app = FastAPI()
|
9 |
|
10 |
@app.post("/transcribe/")
|
|
|
4 |
from fastapi import FastAPI, Request, HTTPException
|
5 |
import librosa
|
6 |
import io
|
7 |
+
whisper = pipeline("automatic-speech-recognition", "WajeehAzeemX/openai-whispersmall-finetuned-2000", torch_dtype=torch.float16, device="cpu")
|
8 |
app = FastAPI()
|
9 |
|
10 |
@app.post("/transcribe/")
|