Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from fastapi.staticfiles import StaticFiles
|
|
11 |
app = FastAPI()
|
12 |
|
13 |
device = 0 if torch.cuda.is_available() else -1
|
14 |
-
asr_pipeline = pipeline(model="openai/whisper-
|
15 |
# asr_pipeline = pipeline( model="openai/whisper-small", device=device, language="pt")
|
16 |
|
17 |
|
|
|
11 |
app = FastAPI()
|
12 |
|
13 |
device = 0 if torch.cuda.is_available() else -1
|
14 |
+
asr_pipeline = pipeline(model="openai/whisper-large-v3", device=device) # Initialize Whisper model
|
15 |
# asr_pipeline = pipeline( model="openai/whisper-small", device=device, language="pt")
|
16 |
|
17 |
|