adnaniqbal001 commited on
Commit
2a37cba
·
verified ·
1 Parent(s): 70f6d16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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