junaid17 commited on
Commit
9c3102d
·
verified ·
1 Parent(s): 5c7c646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -1,12 +1,8 @@
1
- import time
2
- import os
3
- import sys
4
 
5
- print("🚀 CONTAINER STARTED")
6
- print("Python version:", sys.version)
7
- print("Working dir:", os.getcwd())
 
 
8
 
9
- # keep container alive so HF can attach logs
10
- while True:
11
- print("💓 still alive")
12
- time.sleep(10)
 
1
+ from fastapi import FastAPI
 
 
2
 
3
+ app = FastAPI()
4
+
5
+ @app.get("/")
6
+ def health():
7
+ return {"status": "ok", "message": "Docker Space is running"}
8