Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ if not os.path.exists(works_path):
|
|
15 |
os.makedirs(works_path)
|
16 |
print('作品目录:' + works_path)
|
17 |
|
18 |
-
modelname = "
|
19 |
model = whisper.load_model(modelname) #tiny、base、small、medium(可用)、large
|
20 |
|
21 |
def transcript(audiofile, prompt, output_dir):
|
@@ -103,7 +103,7 @@ css_style = "#fixed_size_img {height: 240px;} " \
|
|
103 |
"#overview {margin: auto;max-width: 400px; max-height: 400px;}"
|
104 |
|
105 |
title = "音视频转录 by宁侠"
|
106 |
-
description = "
|
107 |
|
108 |
examples_path = 'examples/'
|
109 |
examples = [[examples_path + 'demo_shejipuhui.mp4']]
|
|
|
15 |
os.makedirs(works_path)
|
16 |
print('作品目录:' + works_path)
|
17 |
|
18 |
+
modelname = "small"
|
19 |
model = whisper.load_model(modelname) #tiny、base、small、medium(可用)、large
|
20 |
|
21 |
def transcript(audiofile, prompt, output_dir):
|
|
|
103 |
"#overview {margin: auto;max-width: 400px; max-height: 400px;}"
|
104 |
|
105 |
title = "音视频转录 by宁侠"
|
106 |
+
description = ""
|
107 |
|
108 |
examples_path = 'examples/'
|
109 |
examples = [[examples_path + 'demo_shejipuhui.mp4']]
|