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