Spaces:
Runtime error
Runtime error
MingLi
commited on
Commit
·
133a362
1
Parent(s):
0167318
bug_fix
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
-
import zipfile
|
4 |
import tempfile
|
5 |
import subprocess
|
6 |
from transformers import pipeline
|
@@ -71,7 +70,7 @@ def handel_files(f_ls):
|
|
71 |
file_output = file
|
72 |
ffmpeg_convert(file, file_output)
|
73 |
else:
|
74 |
-
gr.Warning(f"存在不合法文件{
|
75 |
files.append(file_output)
|
76 |
ret = []
|
77 |
for file in files:
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
|
|
3 |
import tempfile
|
4 |
import subprocess
|
5 |
from transformers import pipeline
|
|
|
70 |
file_output = file
|
71 |
ffmpeg_convert(file, file_output)
|
72 |
else:
|
73 |
+
gr.Warning(f"存在不合法文件{os.path.basename(file)},已跳过处理")
|
74 |
files.append(file_output)
|
75 |
ret = []
|
76 |
for file in files:
|