kk90ujhun commited on
Commit
8c24f20
1 Parent(s): de87899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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.Audio(source="microphone", type="filepath"),
 
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.",