Awesome-Developer commited on
Commit
ce09003
·
verified ·
1 Parent(s): 6eea9be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,6 +1,13 @@
1
  from fastapi import FastAPI
 
 
2
  app = FastAPI()
3
 
 
 
 
 
 
4
  @app.get("/")
5
- def home():
6
- return {"message": "Server is running! Check logs for SSH link."}
 
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."}