Spaces:
Running
Running
jhj0517
commited on
Commit
·
94904d8
1
Parent(s):
e7488d3
add output dir
Browse files
modules/translation_base.py
CHANGED
@@ -90,7 +90,7 @@ class TranslationBase(ABC):
|
|
90 |
|
91 |
timestamp = datetime.now().strftime("%m%d%H%M%S")
|
92 |
if add_timestamp:
|
93 |
-
output_path = os.path.join("outputs", "translations", f"{file_name}-{timestamp}")
|
94 |
else:
|
95 |
output_path = os.path.join("outputs", "translations", f"{file_name}.srt")
|
96 |
|
@@ -105,7 +105,7 @@ class TranslationBase(ABC):
|
|
105 |
|
106 |
timestamp = datetime.now().strftime("%m%d%H%M%S")
|
107 |
if add_timestamp:
|
108 |
-
output_path = os.path.join(self.output_dir, "translations", f"{file_name}-{timestamp}")
|
109 |
else:
|
110 |
output_path = os.path.join(self.output_dir, "translations", f"{file_name}.vtt")
|
111 |
|
|
|
90 |
|
91 |
timestamp = datetime.now().strftime("%m%d%H%M%S")
|
92 |
if add_timestamp:
|
93 |
+
output_path = os.path.join("outputs", "translations", f"{file_name}-{timestamp}.srt")
|
94 |
else:
|
95 |
output_path = os.path.join("outputs", "translations", f"{file_name}.srt")
|
96 |
|
|
|
105 |
|
106 |
timestamp = datetime.now().strftime("%m%d%H%M%S")
|
107 |
if add_timestamp:
|
108 |
+
output_path = os.path.join(self.output_dir, "translations", f"{file_name}-{timestamp}.vtt")
|
109 |
else:
|
110 |
output_path = os.path.join(self.output_dir, "translations", f"{file_name}.vtt")
|
111 |
|