Spaces:
Running
Running
jhj0517
commited on
Commit
•
0197359
1
Parent(s):
6222690
fix bug
Browse files
modules/nllb_inference.py
CHANGED
@@ -83,7 +83,7 @@ class NLLBInference(BaseInterface):
|
|
83 |
files_info = {}
|
84 |
for fileobj in fileobjs:
|
85 |
file_path = fileobj.name
|
86 |
-
file_name, file_ext = os.path.splitext(os.path.basename(fileobj.
|
87 |
if file_ext == ".srt":
|
88 |
parsed_dicts = parse_srt(file_path=file_path)
|
89 |
total_progress = len(parsed_dicts)
|
|
|
83 |
files_info = {}
|
84 |
for fileobj in fileobjs:
|
85 |
file_path = fileobj.name
|
86 |
+
file_name, file_ext = os.path.splitext(os.path.basename(fileobj.name))
|
87 |
if file_ext == ".srt":
|
88 |
parsed_dicts = parse_srt(file_path=file_path)
|
89 |
total_progress = len(parsed_dicts)
|