Skip to content

thisisankit27/TranslationTMT

Repository files navigation

TranslationTMT

Project Working

Working.mp4

Project Overview

This is a Django project that utilizes the Django framework (v4.2.6) along with other dependencies such as django_environ (v0.11.2), torch (v2.1.0), and transformers (v4.34.1).

Getting Started

Follow these steps to set up and run the project locally:

  1. Clone the repository to your local machine:

    git clone https://github.com/thisisankit27/TranslationGPT.git
  2. Navigate to the repo directory:

    cd TranslationGPT
  3. Create a virtual environment (optional but recommended):

    python -m venv venv

    or

    pip install virtualenvwrapper-win
    mkvirtualenv translationEnv

    Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate

      or

      workon translationEnv
    • On macOS and Linux:

      source venv/bin/activate
  4. Install the project dependencies:

    pip install -r requirements.txt
  5. Navigate to the project directory:

    cd project
  6. Open IDE in the same environment:

    code .
  7. Set up your environment variables:

    Create a .env file in the same directory as settings.py and add the following:

    SECRET_KEY=<your_secret_key>

    Replace <your_secret_key> with your custom secret key.

  8. Migrate the database:

    python manage.py migrate
  9. Run the development server:

    python manage.py runserver

    The project should now be accessible at http://127.0.0.1:8000.

Additional Notes

  • Make sure to keep your secret key confidential and do not share it publicly.
  • For any issues or inquiries, feel free to contact us.

Happy coding!