/FastAPI-for-AI

content for my YouTube playlist on "FastAPI for AI"

Primary LanguagePython

FastAPI for AI

image

Basic Commands

  • create a virtual environments

    python -m venv .venv
  • activate the environment

    source .venv/bin/activate

    NOTE: to deactivate the environment simply type deactivate and press enter

  • upgrade pip

    pip install --upgrade pip
  • install requirements

    pip install -r requirements.txt
  • To run app

    • To run in dev environment

      fastapi dev main.py
    • To run in prod or non-dev environment

      fastapi dev main.py

    NOTE: make sure you are in correct directory that contains main.py file