- Python 3.10+ installed
- An OpenAI API key
- Open PowerShell and go to the project folder:
cd TextTranslation
- Create and activate a virtual environment:
python -m venv venv
./venv/Scripts/activate
- Upgrade pip and install dependencies:
python -m pip install --upgrade pip
pip install -r requirements.txt
- Download the spaCy model (recommended):
python -m spacy download en_core_web_sm
- Create a .env file in the project folder with your API key:
OPENAI_API_KEY=your_openai_api_key_here
uvicorn fastapi_app:app --host 0.0.0.0 --port 8000 --reload
After it starts, open the URL shown in the terminal. The default url is: 0.0.0.0:8000