mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
remove clip as requirement
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
@@ -8,7 +8,7 @@ def lang_detect(text:str, top:int=1, threshold:float=0.25) -> str:
|
||||
from modules import shared
|
||||
if model is None:
|
||||
from installer import install
|
||||
install("fasttext")
|
||||
install('fasttext')
|
||||
import fasttext
|
||||
from huggingface_hub import hf_hub_download
|
||||
model_path = hf_hub_download(repo_id, filename="model.bin", cache_dir=shared.opts.hfcache_dir)
|
||||
|
||||
Reference in New Issue
Block a user