add goodbye option

This commit is contained in:
Ajay Raj 2023-03-08 20:41:03 -08:00
commit 9a0677e88d
3 changed files with 74 additions and 28 deletions

View file

@ -1,10 +1,10 @@
from fastapi import FastAPI
import uvicorn
class BaseAgent():
class BaseAgent:
def __init__(self):
self.app = FastAPI()
def run(self, host="localhost", port=3000):
uvicorn.run(self.app, host=host, port=port)
uvicorn.run(self.app, host=host, port=port)