Make SubFox production-ready with parallel translation and UI controls
This commit is contained in:
parent
c40b8bed2b
commit
2b1d05f02c
6046 changed files with 798327 additions and 0 deletions
13
app/translators/base.py
Normal file
13
app/translators/base.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import List
|
||||
|
||||
|
||||
class BaseTranslator(ABC):
|
||||
@abstractmethod
|
||||
def translate_blocks(
|
||||
self,
|
||||
texts: List[str],
|
||||
source_lang: str = "auto",
|
||||
target_lang: str = "da",
|
||||
) -> List[str]:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue