metatorch / app.py
teja944's picture
Upload 11 files
b215601 verified
raw
history blame contribute delete
426 Bytes
import uvicorn
from openenv.core.env_server.http_server import create_app
from env import CustomerSupportEnv
from models import Action, Observation
# Use the environment class and Pydantic types to create the app
app = create_app(
CustomerSupportEnv,
Action,
Observation,
env_name="customer_support_env"
)
def main():
uvicorn.run(app, host="0.0.0.0", port=8000)
if __name__ == "__main__":
main()