Spaces:
Runtime error
Runtime error
Edward Nagy
commited on
Commit
•
fed7807
1
Parent(s):
469b475
Support new Gradio version
Browse files
app.py
CHANGED
@@ -4,9 +4,6 @@ import requests
|
|
4 |
from moviepy.editor import *
|
5 |
import os
|
6 |
|
7 |
-
os.system("pip uninstall -y gradio")
|
8 |
-
os.system("pip install gradio==4.7.1")
|
9 |
-
|
10 |
pipe = pipeline(model="esnagy/whisper-small-hu")
|
11 |
|
12 |
|
@@ -50,7 +47,7 @@ def transcribe(video_url="", audio=None):
|
|
50 |
|
51 |
|
52 |
iface = gr.Interface(
|
53 |
-
|
54 |
inputs=[
|
55 |
gr.Textbox(label="Enter video URL", placeholder="Or leave empty to use microphone"),
|
56 |
gr.Audio(sources=["microphone"], type="filepath"),
|
|
|
4 |
from moviepy.editor import *
|
5 |
import os
|
6 |
|
|
|
|
|
|
|
7 |
pipe = pipeline(model="esnagy/whisper-small-hu")
|
8 |
|
9 |
|
|
|
47 |
|
48 |
|
49 |
iface = gr.Interface(
|
50 |
+
lambda video_url, audio: transcribe(video_url, audio),
|
51 |
inputs=[
|
52 |
gr.Textbox(label="Enter video URL", placeholder="Or leave empty to use microphone"),
|
53 |
gr.Audio(sources=["microphone"], type="filepath"),
|