Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
AsadCognify
/
App
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
712d387
App
/
app.py
AsadCognify
Create app.py
3389675
verified
about 1 month ago
raw
Copy download link
history
blame
Safe
212 Bytes
from
fastapi
import
FastAPI
from
fastapi.responses
import
JSONResponse
app = FastAPI()
@app.get(
"/ping"
)
async
def
ping
():
print
(
"Received ping request"
)
return
JSONResponse(content={
"message"
:
"pong"
})