csukuangfj
commited on
Commit
·
94e0fd2
1
Parent(s):
b922c32
small fixes
Browse files
app.py
CHANGED
@@ -19,7 +19,6 @@
|
|
19 |
# References:
|
20 |
# https://gradio.app/docs/#dropdown
|
21 |
|
22 |
-
import shutil
|
23 |
import logging
|
24 |
import os
|
25 |
from pathlib import Path
|
@@ -27,7 +26,7 @@ from pathlib import Path
|
|
27 |
import gradio as gr
|
28 |
|
29 |
from decode import decode
|
30 |
-
from model import get_pretrained_model, get_vad, language_to_models
|
31 |
|
32 |
title = "# Next-gen Kaldi: Generate subtitles for videos"
|
33 |
|
@@ -219,7 +218,7 @@ with demo:
|
|
219 |
)
|
220 |
|
221 |
upload_audio_button.click(
|
222 |
-
|
223 |
inputs=[
|
224 |
language_radio,
|
225 |
model_dropdown,
|
|
|
19 |
# References:
|
20 |
# https://gradio.app/docs/#dropdown
|
21 |
|
|
|
22 |
import logging
|
23 |
import os
|
24 |
from pathlib import Path
|
|
|
26 |
import gradio as gr
|
27 |
|
28 |
from decode import decode
|
29 |
+
from model import get_pretrained_model, get_vad, language_to_models
|
30 |
|
31 |
title = "# Next-gen Kaldi: Generate subtitles for videos"
|
32 |
|
|
|
218 |
)
|
219 |
|
220 |
upload_audio_button.click(
|
221 |
+
process_uploaded_audio_file,
|
222 |
inputs=[
|
223 |
language_radio,
|
224 |
model_dropdown,
|