Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
pgsoft
/
fastapi
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e9090d7
fastapi
/
main.py
steveagi
copy from ai2
7e320e6
about 2 years ago
raw
Copy download link
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)