fastapi / main.py
steveagi's picture
copy from ai2
7e320e6
raw
history blame
224 Bytes
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)