Spaces:
Sleeping
Sleeping
DWizard
commited on
Commit
·
05114c4
1
Parent(s):
cd90680
optimize logging
Browse filesFormer-commit-id: f7bd62ae1c9f8d8d8561b5754b6661c380c38f04
- src/task.py +4 -4
src/task.py
CHANGED
@@ -81,10 +81,10 @@ class Task:
|
|
81 |
print(f" Task ID: {self.task_id}")
|
82 |
logging.info(f" Task ID: {self.task_id}")
|
83 |
logging.info(f" {self.source_lang} -> {self.target_lang} task in {self.field}")
|
84 |
-
logging.info(f" Model: {self.model}")
|
85 |
-
logging.info(f" subtitle_type: {self.output_type['subtitle']}")
|
86 |
-
logging.info(f" video_ouput: {self.output_type['video']}")
|
87 |
-
logging.info(f" bilingal_ouput: {self.output_type['bilingal']}")
|
88 |
|
89 |
@staticmethod
|
90 |
def fromYoutubeLink(youtube_url, task_id, task_dir, task_cfg):
|
|
|
81 |
print(f" Task ID: {self.task_id}")
|
82 |
logging.info(f" Task ID: {self.task_id}")
|
83 |
logging.info(f" {self.source_lang} -> {self.target_lang} task in {self.field}")
|
84 |
+
logging.info(f" Model: \t\t\t{self.model}")
|
85 |
+
logging.info(f" subtitle_type: \t\t{self.output_type['subtitle']}")
|
86 |
+
logging.info(f" video_ouput: \t\t{self.output_type['video']}")
|
87 |
+
logging.info(f" bilingal_ouput: \t{self.output_type['bilingal']}")
|
88 |
|
89 |
@staticmethod
|
90 |
def fromYoutubeLink(youtube_url, task_id, task_dir, task_cfg):
|