Upload jobs/process/BaseExtensionProcess.py with huggingface_hub
Browse files
jobs/process/BaseExtensionProcess.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import OrderedDict
|
| 2 |
+
from typing import ForwardRef
|
| 3 |
+
from jobs.process.BaseProcess import BaseProcess
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class BaseExtensionProcess(BaseProcess):
|
| 7 |
+
def __init__(
|
| 8 |
+
self,
|
| 9 |
+
process_id: int,
|
| 10 |
+
job,
|
| 11 |
+
config: OrderedDict
|
| 12 |
+
):
|
| 13 |
+
super().__init__(process_id, job, config)
|
| 14 |
+
self.process_id: int
|
| 15 |
+
self.config: OrderedDict
|
| 16 |
+
self.progress_bar: ForwardRef('tqdm') = None
|
| 17 |
+
|
| 18 |
+
def run(self):
|
| 19 |
+
super().run()
|