Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,8 @@ from transformers import WhisperProcessor, WhisperForConditionalGeneration
|
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
import torchaudio
|
5 |
-
from transformers import pipeline
|
6 |
-
from transformers.pipelines.audio_utils import ffmpeg_read
|
7 |
|
8 |
-
MODEL_NAME = "
|
9 |
|
10 |
processor = WhisperProcessor.from_pretrained(MODEL_NAME)
|
11 |
model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME)
|
@@ -51,8 +49,8 @@ file_transcribe = gr.Interface(
|
|
51 |
fn=transcribe,
|
52 |
inputs=gr.Audio(type="filepath", label="Audio file"),
|
53 |
outputs="text",
|
54 |
-
title="
|
55 |
-
description="
|
56 |
)
|
57 |
|
58 |
with demo:
|
|
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
import torchaudio
|
|
|
|
|
5 |
|
6 |
+
MODEL_NAME = "islomov/navaistt_v1_medium"
|
7 |
|
8 |
processor = WhisperProcessor.from_pretrained(MODEL_NAME)
|
9 |
model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME)
|
|
|
49 |
fn=transcribe,
|
50 |
inputs=gr.Audio(type="filepath", label="Audio file"),
|
51 |
outputs="text",
|
52 |
+
title="Navai SST v1 Medium",
|
53 |
+
description="Transcribe Uzbek speech to text using Navai SST v1 Medium model. Upload an audio file to get started. Model: https://huggingface.co/islomov/navaistt_v1_medium"
|
54 |
)
|
55 |
|
56 |
with demo:
|