Skip to content

Commit

Permalink
fix (style): black
Browse files Browse the repository at this point in the history
  • Loading branch information
reycn committed Dec 19, 2024
1 parent 69b02ee commit 5ce72a1
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,24 @@

from pdf2zh import __version__
from pdf2zh.high_level import translate
from pdf2zh.translator import (AnythingLLMTranslator, AzureOpenAITranslator,
AzureTranslator, BaseTranslator, BingTranslator,
DeepLTranslator, DeepLXTranslator,
DifyTranslator, GeminiTranslator,
GoogleTranslator, ModelScopeTranslator,
OllamaTranslator, OpenAITranslator,
SiliconTranslator, TencentTranslator,
ZhipuTranslator)
from pdf2zh.translator import (
AnythingLLMTranslator,
AzureOpenAITranslator,
AzureTranslator,
BaseTranslator,
BingTranslator,
DeepLTranslator,
DeepLXTranslator,
DifyTranslator,
GeminiTranslator,
GoogleTranslator,
ModelScopeTranslator,
OllamaTranslator,
OpenAITranslator,
SiliconTranslator,
TencentTranslator,
ZhipuTranslator,
)

service_map: dict[str, BaseTranslator] = {
"Google": GoogleTranslator,
Expand Down

0 comments on commit 5ce72a1

Please sign in to comment.