Capitalize Persian and make sure language is lowercase when being used.
This commit is contained in:
parent
c8c5b48b20
commit
bb03886da6
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class DirectoryConfig:
|
||||||
@dataclass
|
@dataclass
|
||||||
class TranslationConfig:
|
class TranslationConfig:
|
||||||
"""Translation configuration settings."""
|
"""Translation configuration settings."""
|
||||||
default_language: str = "persian"
|
default_language: str = "Persian"
|
||||||
batch_size: int = 300
|
batch_size: int = 300
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
|
|
|
@ -42,7 +42,7 @@ class TranslatorApp:
|
||||||
|
|
||||||
# Configure gemini_srt_translator
|
# Configure gemini_srt_translator
|
||||||
gst.gemini_api_key = api_key
|
gst.gemini_api_key = api_key
|
||||||
gst.target_language = language
|
gst.target_language = language.lower()
|
||||||
gst.input_file = str(input_file)
|
gst.input_file = str(input_file)
|
||||||
gst.output_file = str(output_file)
|
gst.output_file = str(output_file)
|
||||||
gst.batch_size = batch_size
|
gst.batch_size = batch_size
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue