Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ app = FastAPI()
|
|
11 |
# Load the Whisper model once during startup
|
12 |
# device = 0 if torch.cuda.is_available() else -1 # Use GPU if available, otherwise CPU
|
13 |
device = -1
|
14 |
-
asr_pipeline = pipeline(model="openai/whisper-
|
15 |
|
16 |
# Basic GET endpoint
|
17 |
@app.get("/")
|
|
|
11 |
# Load the Whisper model once during startup
|
12 |
# device = 0 if torch.cuda.is_available() else -1 # Use GPU if available, otherwise CPU
|
13 |
device = -1
|
14 |
+
asr_pipeline = pipeline(model="openai/whisper-tiny", device=device) # Initialize Whisper model
|
15 |
|
16 |
# Basic GET endpoint
|
17 |
@app.get("/")
|