Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
from transformers import pipeline
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
pipe = pipeline(model="kk90ujhun/whisper-small-hi") # change to "your-username/the-name-you-picked"
|
@@ -8,8 +9,9 @@ def transcribe(audio):
|
|
8 |
return text
|
9 |
|
10 |
iface = gr.Interface(
|
11 |
-
fn=transcribe,
|
12 |
-
inputs=gr.
|
|
|
13 |
outputs="text",
|
14 |
title="Whisper Small Hindi",
|
15 |
description="Realtime demo for Hindi speech recognition using a fine-tuned Whisper small model.",
|
|
|
1 |
from transformers import pipeline
|
2 |
+
from moviepy.editor import *
|
3 |
import gradio as gr
|
4 |
|
5 |
pipe = pipeline(model="kk90ujhun/whisper-small-hi") # change to "your-username/the-name-you-picked"
|
|
|
9 |
return text
|
10 |
|
11 |
iface = gr.Interface(
|
12 |
+
fn=transcribe,
|
13 |
+
inputs=gr.Video(source="microphone", type="filepath"),
|
14 |
+
inputs=inputs.audio
|
15 |
outputs="text",
|
16 |
title="Whisper Small Hindi",
|
17 |
description="Realtime demo for Hindi speech recognition using a fine-tuned Whisper small model.",
|