Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import torch
|
@@ -12,8 +13,6 @@ from melo.api import TTS
|
|
12 |
from concurrent.futures import ThreadPoolExecutor
|
13 |
import ffmpeg
|
14 |
|
15 |
-
os.system("python -m unidic download")
|
16 |
-
|
17 |
def process_video(video_file, language_choice):
|
18 |
if video_file == None or language_choice == None:
|
19 |
return None
|
|
|
1 |
+
os.system("python -m unidic download")
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import torch
|
|
|
13 |
from concurrent.futures import ThreadPoolExecutor
|
14 |
import ffmpeg
|
15 |
|
|
|
|
|
16 |
def process_video(video_file, language_choice):
|
17 |
if video_file == None or language_choice == None:
|
18 |
return None
|