{"id":22790692,"url":"https://github.com/injusmol/translator-ios-app","last_synced_at":"2026-05-05T00:38:37.331Z","repository":{"id":248993137,"uuid":"830394485","full_name":"InjuSmol/Translator-IOS-App","owner":"InjuSmol","description":"A Swift-based iOS app translating French to English with Hugging Face's NLP models. Powered by Python and PyTorch.","archived":false,"fork":false,"pushed_at":"2025-04-14T22:32:21.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T23:29:53.708Z","etag":null,"topics":["flask","ios","python","pytorch","rest-api","swift","translator-app"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InjuSmol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T07:32:31.000Z","updated_at":"2025-04-14T22:32:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"ada38527-2a54-4c90-b635-f3bdfe978646","html_url":"https://github.com/InjuSmol/Translator-IOS-App","commit_stats":null,"previous_names":["injusmol/translator-ios-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/InjuSmol/Translator-IOS-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FTranslator-IOS-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FTranslator-IOS-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FTranslator-IOS-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FTranslator-IOS-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InjuSmol","download_url":"https://codeload.github.com/InjuSmol/Translator-IOS-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FTranslator-IOS-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32631058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","ios","python","pytorch","rest-api","swift","translator-app"],"created_at":"2024-12-12T02:28:40.588Z","updated_at":"2026-05-05T00:38:37.326Z","avatar_url":"https://github.com/InjuSmol.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# French to English Translator IOS APP \n\nThis is a simple French-to-English translator iOS mobile application powered by Python, Flask, and the Hugging Face `transformers` library. Uses natural language processing (NLP) powered by a Python backend. The translation is handled by a model from the Hugging Face Transformers library.\n\n\n## Technologies Used\n- Swift: For the iOS mobile application development.\n- Python: For the backend server.\n- Flask: A lightweight WSGI web application framework for the backend API.\n- Transformers: Hugging Face library for NLP tasks.\n- PyTorchFor running the translation model.\n- REST API\n\n## Installation and Running Instructions\n\n### Prerequisites\n- Xcode for iOS development.\n- Python 3.7 or later\n- pip3 (Python package installer)\n\n### Setup\n1. **Clone the repository:**\n   ```sh\n   git clone git@github.com:InjuSmol/Translator-IOS-App.git\n   cd translator\n\n2. **Create a virtual environment (optional but recommended):**\n   ```sh\n   python3 -m venv myenv\n   source myenv/bin/activate  # On Windows use `myenv\\Scripts\\activate`\n   ```\n\n3. **Install the required packages:**\n   ```sh\n   pip3 install flask torch transformers\n   ```\n\n### Running the Application\n1. **Start the Flask server:**\n   ```sh\n   python3 translator.py\n   ```\n\n2. **Test the API Endpoint:**\n   You can use a tool like `curl` or Postman to send a POST request to your Flask server to test the translation.\n\n   **Using `curl`:**\n   ```sh\n   curl -X POST http://localhost:5000/translate -H \"Content-Type: application/json\" -d '{\"text\": \"Bonjour\"}'\n   ```\n\n   This should return a JSON response with the translated text:\n   ```json\n   {\n       \"translated_text\": \"Hello\"\n   }\n   ```\n   \n### iOS Application Setup\n\n1. **Open the project in Xcode:**\n\n    Open the `FrenchToEnglishTranslator.xcodeproj` file in Xcode.\n\n2. **Modify the backend URL:**\n\n    Ensure the URL in your Swift code points to the Flask server's address (e.g., `http://localhost:5000/translate`).\n\n3. **Build and run the iOS application on a simulator or device.**\n\n## Improvements Needed\n- **Reverse Translation:** Enable English-\u003eFrench Translation.\n- **Complex Phrases and Sentences: Allow the translator to handle more complex tasks. \n- **Model Optimization:** Optimize the translation model for faster performance and lower resource consumption.\n- **Offline Mode:** Implement offline translation capabilities using on-device models.\n- **Error Handling:** Implement better error handling for various edge cases, such as empty input text, invalid input format, etc.\n- **Frontend User Interface:** Develop a frontend UI for the application using a framework like React or Angular.\n- **Model Optimization:** Optimize the model loading and inference process for faster response times.\n- **Dockerization:** Dockerize the application for easier deployment and scalability.\n- **Authentication:** Add user authentication and authorization to secure the API endpoints.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finjusmol%2Ftranslator-ios-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finjusmol%2Ftranslator-ios-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finjusmol%2Ftranslator-ios-app/lists"}