Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
import pytube as pt
|
5 |
from transformers import pipeline
|
6 |
|
7 |
-
MODEL_NAME = "openai/whisper-
|
8 |
BATCH_SIZE = 8
|
9 |
|
10 |
device = 0 if torch.cuda.is_available() else "cpu"
|
@@ -77,7 +77,6 @@ mf_transcribe = gr.Interface(
|
|
77 |
layout="horizontal",
|
78 |
theme="huggingface",
|
79 |
title="Whisper Large V2: Transcribe Audio",
|
80 |
-
|
81 |
description=(
|
82 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the"
|
83 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe audio files"
|
|
|
4 |
import pytube as pt
|
5 |
from transformers import pipeline
|
6 |
|
7 |
+
MODEL_NAME = "openai/whisper-large-v2"
|
8 |
BATCH_SIZE = 8
|
9 |
|
10 |
device = 0 if torch.cuda.is_available() else "cpu"
|
|
|
77 |
layout="horizontal",
|
78 |
theme="huggingface",
|
79 |
title="Whisper Large V2: Transcribe Audio",
|
|
|
80 |
description=(
|
81 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the"
|
82 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe audio files"
|