fastapi / main.py
steveagi's picture
rename a file
9d22f37
raw
history blame
244 Bytes
from fastapi import FastAPI
import games.game_util as game_util
app = FastAPI()
@app.get("/")
async def root():
return {"message": "PGAI API"}
@app.get("/nlp")
def test(game: str, command: str):
return game_util.nlp(game, command)