Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|