Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
-
import whisper
|
2 |
import gradio as gr
|
3 |
import subprocess
|
4 |
-
import os
|
5 |
|
6 |
# Load the Whisper model
|
7 |
try:
|
8 |
-
model = whisper.load_model("large")
|
9 |
except Exception as e:
|
10 |
print(f"Error loading Whisper model: {e}")
|
11 |
raise e
|
|
|
1 |
+
import whisper # Ensure 'openai-whisper' is installed
|
2 |
import gradio as gr
|
3 |
import subprocess
|
|
|
4 |
|
5 |
# Load the Whisper model
|
6 |
try:
|
7 |
+
model = whisper.load_model("large") # Official Whisper model
|
8 |
except Exception as e:
|
9 |
print(f"Error loading Whisper model: {e}")
|
10 |
raise e
|