Skip to content

Conversation

@DevToolsBlaise
Copy link

@DevToolsBlaise DevToolsBlaise commented Oct 30, 2025

This refactor decouples the AWS and DeepL API integrations from the Streamlit app’s core logic.
A new OpenAI based provider has been added and set as the default for simplicity.

To add a new provider:

  1. Implement a class under services/ that conforms to the following constructs:

    • Translator (services/translation.py)

    • TextToSpeech (services/tts.py)

  2. Register the provider in services/factory.py.

  3. Optionally, update the Streamlit app configuration to make your new provider the default.

Only the current default provider (OpenAI) has been tested so far, since access to AWS and DeepL is unavailable.

The code for the refactor was generated by @ChefTDD with my review and oversight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant