Spaces:
Sleeping
Sleeping
switch to distil medium, cleanup code
Browse files
app.py
CHANGED
@@ -2,11 +2,10 @@ import gradio as gr
|
|
2 |
import spaces
|
3 |
import torch
|
4 |
import io
|
5 |
-
import os.path
|
6 |
-
from huggingface_hub import hf_hub_download
|
7 |
import whisper
|
|
|
8 |
|
9 |
-
model_path = hf_hub_download(repo_id="distil-whisper/distil-
|
10 |
|
11 |
writer = whisper.utils.get_writer("srt", "/dev/null")
|
12 |
|
|
|
2 |
import spaces
|
3 |
import torch
|
4 |
import io
|
|
|
|
|
5 |
import whisper
|
6 |
+
from huggingface_hub import hf_hub_download
|
7 |
|
8 |
+
model_path = hf_hub_download(repo_id="distil-whisper/distil-medium.en", filename="original-model.bin")
|
9 |
|
10 |
writer = whisper.utils.get_writer("srt", "/dev/null")
|
11 |
|