Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,23 +6,13 @@ pipe = pipeline(model="jbatista79/whisper-jrb-small-ta") # change to "your-user
|
|
6 |
def transcribe(audio):
|
7 |
text = pipe(audio)["text"]
|
8 |
return text
|
9 |
-
|
10 |
-
iface = gr.Interface(
|
11 |
-
fn=transcribe,
|
12 |
-
# inputs=gr.Audio(source="microphone", type="filepath"),
|
13 |
-
inputs=gr.Audio(sources=["microphone"], type="filepath"),
|
14 |
-
outputs="text",
|
15 |
-
title="Whisper Small Spanish - தமிழ் (TA)",
|
16 |
-
description="Realtime proof-of-concept demo for Tamil speech recognition using a fine-tuned Whisper small model. Created by Josué R. Batista - 2024-01-17",
|
17 |
-
)
|
18 |
-
iface.launch(share=True)
|
19 |
-
'''
|
20 |
with gr.Blocks() as app:
|
21 |
with gr.Row():
|
22 |
with gr.Column():
|
23 |
gr.Image(value="lion-face-outline-cut-hi-strategia-black-strategia01-300x77.png", width=300, show_label=False, show_download_button=False, show_share_button=False) # Adjust width as needed
|
24 |
with gr.Column():
|
25 |
-
gr.Markdown("## Whisper Small
|
26 |
gr.Markdown("Realtime proof-of-concept demo for Tamil speech recognition using a fine-tuned Whisper small model. Created by Josué R. Batista - 2024-01-17")
|
27 |
with gr.Row():
|
28 |
audio_input = gr.Audio(sources=["microphone"], type="filepath")
|
|
|
6 |
def transcribe(audio):
|
7 |
text = pipe(audio)["text"]
|
8 |
return text
|
9 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
with gr.Blocks() as app:
|
11 |
with gr.Row():
|
12 |
with gr.Column():
|
13 |
gr.Image(value="lion-face-outline-cut-hi-strategia-black-strategia01-300x77.png", width=300, show_label=False, show_download_button=False, show_share_button=False) # Adjust width as needed
|
14 |
with gr.Column():
|
15 |
+
gr.Markdown("## Whisper Small Tamil - தமிழ் (TA)")
|
16 |
gr.Markdown("Realtime proof-of-concept demo for Tamil speech recognition using a fine-tuned Whisper small model. Created by Josué R. Batista - 2024-01-17")
|
17 |
with gr.Row():
|
18 |
audio_input = gr.Audio(sources=["microphone"], type="filepath")
|