AurelioAguirre commited on
Commit
8856ca8
·
1 Parent(s): c2cdb2d

New Dockerfile, still dummy app, testing minimal req file. Fixed REAMDME v5

Browse files
Files changed (1) hide show
  1. main/app.py +9 -4
main/app.py CHANGED
@@ -1,17 +1,22 @@
 
 
 
 
1
  from fastapi import FastAPI
2
- import uvicorn
3
 
4
  app = FastAPI()
 
5
 
6
  @app.get("/")
7
  async def root():
8
  return {"message": "Server is running"}
9
 
10
- @app.get("/health")
11
- async def health_check():
12
- return {"status": "healthy"}
13
 
14
  if __name__ == "__main__":
 
 
15
  uvicorn.run(
16
  "main.app:app",
17
  host="0.0.0.0",
 
1
+ import sys
2
+ print("Python Version:", sys.version)
3
+ print("Starting application...")
4
+
5
  from fastapi import FastAPI
6
+ print("FastAPI imported successfully")
7
 
8
  app = FastAPI()
9
+ print("FastAPI app created")
10
 
11
  @app.get("/")
12
  async def root():
13
  return {"message": "Server is running"}
14
 
15
+ print("Routes defined")
 
 
16
 
17
  if __name__ == "__main__":
18
+ print("Starting uvicorn server...")
19
+ import uvicorn
20
  uvicorn.run(
21
  "main.app:app",
22
  host="0.0.0.0",