🐛[bugfix] Model : Cranslate2の不要なコードを削除
This commit is contained in:
@@ -6,11 +6,6 @@ from .translation_languages import translation_lang
|
|||||||
import ctranslate2
|
import ctranslate2
|
||||||
import transformers
|
import transformers
|
||||||
|
|
||||||
TRANSLATE_MODELS = {
|
|
||||||
"small": "facebook/m2m100_418M",
|
|
||||||
"large": "facebook/m2m100_1.2B"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Translator
|
# Translator
|
||||||
class Translator():
|
class Translator():
|
||||||
def __init__(self, path, weight_config):
|
def __init__(self, path, weight_config):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import tempfile
|
|||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
from os import path as os_path
|
from os import path as os_path
|
||||||
from os import makedirs as os_makedirs
|
from os import makedirs as os_makedirs
|
||||||
from requests import get as requests_get, head as requests_head
|
from requests import get as requests_get
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|||||||
Reference in New Issue
Block a user