Skip to content

Comments

Add Translator Logic and Unit/Mock Tests for P4A Checkpoint#1

Open
skkuwari-alt wants to merge 1 commit intomainfrom
ci-setup
Open

Add Translator Logic and Unit/Mock Tests for P4A Checkpoint#1
skkuwari-alt wants to merge 1 commit intomainfrom
ci-setup

Conversation

@skkuwari-alt
Copy link
Collaborator

This pull request adds the initial server-side functionality required for the P4A LLM Experiment Integration Checkpoint. It includes the hardcoded translation logic, a basic Flask endpoint, and the unit and mock tests migrated from the notebook.

Changes:

Implemented translate_content in src/translator.py
Added app.py with a simple translation route
Added unit tests for translator behavior
Added mock-based robustness tests for unexpected model outputs
Confirmed all tests run successfully with pytest

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