devingulliver commited on
Commit
281cf3d
1 Parent(s): a3869d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ writer = whisper.utils.get_writer("srt", "/dev/null")
9
  @spaces.GPU
10
  def generate(file):
11
  # get file to type bytes somehow
12
- model = whisper.load_model("large", download_root=".", device="cuda")
13
  audio = whisper.load_audio(file)
14
  result = model.transcribe(audio)
15
  out = io.StringIO()
 
9
  @spaces.GPU
10
  def generate(file):
11
  # get file to type bytes somehow
12
+ model = whisper.load_model("large", device="cuda")
13
  audio = whisper.load_audio(file)
14
  result = model.transcribe(audio)
15
  out = io.StringIO()