Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,11 @@ from fastapi.responses import JSONResponse
|
|
| 3 |
|
| 4 |
app = FastAPI()
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
@app.get("/ping")
|
| 7 |
async def ping():
|
| 8 |
print("Received ping request")
|
|
|
|
| 3 |
|
| 4 |
app = FastAPI()
|
| 5 |
|
| 6 |
+
@app.get("/")
|
| 7 |
+
async def home():
|
| 8 |
+
print("Fetch base")
|
| 9 |
+
return JSONResponse(content={"message": "running"})
|
| 10 |
+
|
| 11 |
@app.get("/ping")
|
| 12 |
async def ping():
|
| 13 |
print("Received ping request")
|