Skip to content

dbursy/fastapi_exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Exercise

Prerequisites: Virtual Environment

Create and activate the python virtual environment in the local project folder

python3 -m venv mlops_env
source mlops_env/bin/activate

If this step is successfull the comand line displays the prefix (mlops_env). Continue by installing required Python packages

python -m pip install -r requirements.txt

Note: To create or update the requirements file, please run

pip freeze > requirements.txt

Start and test the API service

uvicorn api.main:api --reload

Test the API using the following notebook notebooks/quiz_api_text.ipynb or access the documentation via http://localhost:8000/docs.

📚 References

About

MLOps FastAPI - Introduction to API Services

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages