Bard API with FastAPI
- python -m venv bardapi
- bardapi/bin/activate
pip install fastapi uvicornCreate requirements
pip freeze > requirements.txt
uvicorn main:app --reload --port 5040 --host 0.0.0.0- reload: Automatically reload
- port: Port to run
- host: 0.0.0.0 public scope
- Access
http://localhost:5040/docs
- app.title: Title for API Swagger.
- app.version: Version.
- @app.get(route, tags): Tags are added to each route.