Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import pytube as pt
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
-
MODEL_NAME = "openai/whisper-medium"
|
9 |
lang = "en"
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
@@ -64,7 +64,7 @@ mf_transcribe = gr.Interface(
|
|
64 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
65 |
gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
66 |
],
|
67 |
-
outputs="text"
|
68 |
layout="horizontal",
|
69 |
theme="huggingface",
|
70 |
title="Whisper Demo: Transcribe Audio",
|
@@ -82,7 +82,7 @@ yt_transcribe = gr.Interface(
|
|
82 |
theme="huggingface",
|
83 |
title="Whisper Demo: Transcribe YouTube",
|
84 |
description=(
|
85 |
-
"Transcribe long-form YouTube videos with the click of a button!
|
86 |
),
|
87 |
allow_flagging="never",
|
88 |
)
|
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
+
MODEL_NAME = "openai/whisper-medium"
|
9 |
lang = "en"
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
|
|
64 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
65 |
gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
66 |
],
|
67 |
+
outputs="text",
|
68 |
layout="horizontal",
|
69 |
theme="huggingface",
|
70 |
title="Whisper Demo: Transcribe Audio",
|
|
|
82 |
theme="huggingface",
|
83 |
title="Whisper Demo: Transcribe YouTube",
|
84 |
description=(
|
85 |
+
"Transcribe long-form YouTube videos with the click of a button!"
|
86 |
),
|
87 |
allow_flagging="never",
|
88 |
)
|