Spaces:
Sleeping
Sleeping
Commit History
-
EchoScript : 1 & 2 - the static 4-language list was the real bug. 3 & 4 - already correct, verified by audit.
usertea1788966
-
What changed:
userteaservices/translation.py TranslationService.translate()/translate_many() now take an api_key parameter, checked fresh on every call — no instance state holds it. Key present → routes to the Claude backend, using ANTHROPIC_TARGET_LANGUAGES (the full 11-language list: French, English, German, Persian, Spanish, Italian, Portuguese, Dutch, Arabic, Russian, Turkish). Key absent → routes to MarianMT (MARIAN_TARGET_LANGUAGES: English, German, Persian, Spanish — the set where direct/English-pivot coverage is solid). _anthropic_client(api_key) builds a fresh client per call and is not cached — the key lives only for the duration of that one translation call, never persisted in module state, never logged in error messages, never written anywhere. app.py New password-masked "Anthropic API Key (optional)" field with inline copy explaining the trade-off. The Outputs checkbox list updates live as the key field changes (.change() handler): typing a key expands the list to all 11 languages while pre…ae768cc
-
EchoScript : New Architecture
usertea7d761b6