Spaces:
Runtime error
Runtime error
Commit
·
e3d3637
1
Parent(s):
313fe76
Add root endpoint to return a welcome message
Browse files
main.py
CHANGED
@@ -476,6 +476,10 @@ class AskResponse(BaseModel):
|
|
476 |
###############################################################################
|
477 |
# HTTP AUTH ENDPOINTS
|
478 |
###############################################################################
|
|
|
|
|
|
|
|
|
479 |
@app.post("/auth/signup", response_model=SignupResponse)
|
480 |
def signup(payload: SignupRequest):
|
481 |
"""
|
|
|
476 |
###############################################################################
|
477 |
# HTTP AUTH ENDPOINTS
|
478 |
###############################################################################
|
479 |
+
@app.get("/")
|
480 |
+
def read_root():
|
481 |
+
return {"message": "Hello from FastAPI on Hugging Face Spaces!"}
|
482 |
+
|
483 |
@app.post("/auth/signup", response_model=SignupResponse)
|
484 |
def signup(payload: SignupRequest):
|
485 |
"""
|