Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
from fastapi import FastAPI
|
|
|
|
|
|
|
| 2 |
app = FastAPI()
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
@app.get("/")
|
| 5 |
-
def
|
| 6 |
-
return {"message": "
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from fastapi.responses import JSONResponse
|
| 3 |
+
|
| 4 |
app = FastAPI()
|
| 5 |
|
| 6 |
+
# This is a public path that doesn't need a Hugging Face token
|
| 7 |
+
@app.get("/health-check-vps-77")
|
| 8 |
+
def health():
|
| 9 |
+
return {"status": "alive", "service": "ollama"}
|
| 10 |
+
|
| 11 |
@app.get("/")
|
| 12 |
+
def root():
|
| 13 |
+
return {"message": "VPS is running. Use sshx to connect."}
|