from fastapi import FastAPI import main_util app = FastAPI() @app.get("/") async def root(): return {"message": "PGAI API"} @app.get("/nlp") def test(game: str, command: str): return main_util.nlp(game, command)