kk90ujhun commited on
Commit
b7d8cb4
1 Parent(s): 5dfd770

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -5,9 +5,10 @@ import gradio as gr
5
  pipe = pipeline(model="kk90ujhun/whisper-small-hi") # change to "your-username/the-name-you-picked"
6
 
7
  def transcribe(my_video):
8
- my_audio = my_video.audio,
9
- text = pipe(my_audio)["text"]
10
- return text
 
11
 
12
  iface = gr.Interface(
13
  fn=transcribe,
 
5
  pipe = pipeline(model="kk90ujhun/whisper-small-hi") # change to "your-username/the-name-you-picked"
6
 
7
  def transcribe(my_video):
8
+ my_audio = my_video.audio
9
+ return audio
10
+ # text = pipe(my_audio)["text"]
11
+ # return text
12
 
13
  iface = gr.Interface(
14
  fn=transcribe,