Update model link
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
from transformers.pipelines.audio_utils import ffmpeg_read
|
4 |
import gradio as gr
|
5 |
|
6 |
-
MODEL_NAME = "
|
7 |
BATCH_SIZE = 8
|
8 |
|
9 |
device = 0 if torch.cuda.is_available() else "cpu"
|
@@ -56,7 +56,7 @@ mic_transcribe = gr.Interface(
|
|
56 |
fn=transcribe,
|
57 |
inputs=[
|
58 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
59 |
-
gr.inputs.Radio(["transcribe"
|
60 |
gr.inputs.Checkbox(default=False, label="Return timestamps"),
|
61 |
],
|
62 |
outputs="text",
|
|
|
3 |
from transformers.pipelines.audio_utils import ffmpeg_read
|
4 |
import gradio as gr
|
5 |
|
6 |
+
MODEL_NAME = "Aryan-401/whisper-tiny-finetune-hindi-fleurs"
|
7 |
BATCH_SIZE = 8
|
8 |
|
9 |
device = 0 if torch.cuda.is_available() else "cpu"
|
|
|
56 |
fn=transcribe,
|
57 |
inputs=[
|
58 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
59 |
+
gr.inputs.Radio(["transcribe"], label="Task", default="transcribe"),
|
60 |
gr.inputs.Checkbox(default=False, label="Return timestamps"),
|
61 |
],
|
62 |
outputs="text",
|