Deploy AI Models - Making AI models accessible to users.
To get started with making ML applications reachable to users:
- Click
<>Code - Copy the link from
HTTPS - Open your IDE
- Start a new repo from VCS
- Paste the link copied in Step 2
For PyCharm/IntelliJ users:
- On the lower left-hand side, click
Python Packages - Search for
fastapi - On the right-hand side, click
Install package - Repeat Steps 2 and 3 for
uvicorn,torchandtransformers
For VSCode users:
- Go to
Pythonon the left-hand side - At
Workspace Environment, go toPackages - Click on the search icon
- Search for
fastapiand click on the first item - Repeat Step 4 for
uvicorn,torchandtransformers
For terminal users:
pip install -r requirements.txt
- Open
ex1.py - Right-click and go to
Run ex1.py - Follow this link: http://localhost:8000/
- Open
ex2.py - Right-click and go to
Run ex2.py - Follow this link: http://localhost:8000/analysis?query=I am very happy with the purchase
- Open
ex3.py - Right-click and go to
Run ex3.py - Follow this link: http://localhost:8000/generate?prompt=translate English to German That is good
- Open
cleanup.py - Right-click and go to
Run cleanup.py
Made with ❤️ by datamax.ai.