Spaces:
Sleeping
Sleeping
Ziyou Li
commited on
Commit
•
6460728
1
Parent(s):
f763fa4
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ def transcribe(audio):
|
|
19 |
return text
|
20 |
|
21 |
def gen_sub(video):
|
22 |
-
result = subprocess.check_output(['auto_subtitle',
|
23 |
-
return
|
24 |
|
25 |
def get_text(url):
|
26 |
result = pipe(get_audio(url))
|
|
|
19 |
return text
|
20 |
|
21 |
def gen_sub(video):
|
22 |
+
result = subprocess.check_output(['auto_subtitle','./example.mp4','--model', 'medium'])
|
23 |
+
return result
|
24 |
|
25 |
def get_text(url):
|
26 |
result = pipe(get_audio(url))
|