kk90ujhun commited on
Commit
d7a46b2
1 Parent(s): ca46f4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -7,9 +7,10 @@ pipe = pipeline(model="kk90ujhun/whisper-small-hi") # change to "your-username/
7
 
8
  def transcribe(my_video):
9
  # my_video = requests.get(my_url)
10
- my_audio = my_video.audio
11
- text = pipe(my_audio)["text"]
12
- return text
 
13
 
14
  iface = gr.Interface(
15
  fn=transcribe,
 
7
 
8
  def transcribe(my_video):
9
  # my_video = requests.get(my_url)
10
+ # my_audio = my_video.audio
11
+ # text = pipe(my_audio)["text"]
12
+ # return text
13
+ return type(my_video)
14
 
15
  iface = gr.Interface(
16
  fn=transcribe,