Spaces:
Sleeping
Sleeping
zanemotiwala
commited on
Commit
•
84b6f15
1
Parent(s):
63cf35c
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,6 @@ import logging
|
|
3 |
from transformers import pipeline
|
4 |
import torch
|
5 |
|
6 |
-
description = "Simple Speech Recognition App"
|
7 |
-
title = "This app allows users to record audio through the microphone or upload audio files to be transcribed into text. It uses the speech_recognition library to process audio and extract spoken words. Ideal for quick transcription of short speeches and audio notes."
|
8 |
-
|
9 |
asr = pipeline(task="automatic-speech-recognition",
|
10 |
model="distil-whisper/distil-small.en")
|
11 |
|
@@ -28,7 +25,7 @@ with gr.Blocks() as demo:
|
|
28 |
with gr.Row():
|
29 |
gr.Markdown("# Simple Speech Recognition App")
|
30 |
with gr.Row():
|
31 |
-
gr.Markdown("### This app allows you to record or upload audio and see its transcription.
|
32 |
with gr.Row():
|
33 |
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
34 |
transcribe_button = gr.Button("Transcribe Audio")
|
|
|
3 |
from transformers import pipeline
|
4 |
import torch
|
5 |
|
|
|
|
|
|
|
6 |
asr = pipeline(task="automatic-speech-recognition",
|
7 |
model="distil-whisper/distil-small.en")
|
8 |
|
|
|
25 |
with gr.Row():
|
26 |
gr.Markdown("# Simple Speech Recognition App")
|
27 |
with gr.Row():
|
28 |
+
gr.Markdown("### This app allows you to record or upload audio and see its transcription.")
|
29 |
with gr.Row():
|
30 |
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
31 |
transcribe_button = gr.Button("Transcribe Audio")
|