Update modules/translation/nllb_inference.py
Browse files
modules/translation/nllb_inference.py
CHANGED
@@ -3,10 +3,10 @@ import gradio as gr
|
|
3 |
import os
|
4 |
|
5 |
from modules.utils.paths import TRANSLATION_OUTPUT_DIR, NLLB_MODELS_DIR
|
6 |
-
import modules.translation.translation_base as
|
7 |
|
8 |
|
9 |
-
class NLLBInference(
|
10 |
def __init__(self,
|
11 |
model_dir: str = NLLB_MODELS_DIR,
|
12 |
output_dir: str = TRANSLATION_OUTPUT_DIR
|
|
|
3 |
import os
|
4 |
|
5 |
from modules.utils.paths import TRANSLATION_OUTPUT_DIR, NLLB_MODELS_DIR
|
6 |
+
import modules.translation.translation_base as TranslationBase
|
7 |
|
8 |
|
9 |
+
class NLLBInference(TranslationBase):
|
10 |
def __init__(self,
|
11 |
model_dir: str = NLLB_MODELS_DIR,
|
12 |
output_dir: str = TRANSLATION_OUTPUT_DIR
|