D0nG4667 commited on
Commit
c1a32b7
·
1 Parent(s): f65074a

fix(ci): fix HF_TOKEN syntax and spaces config

Browse files
Files changed (2) hide show
  1. README.md +10 -0
  2. app.py +2 -2
README.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  # DDOPS-AI: Inference & Explanation Engine
2
 
3
  [![Framework](https://img.shields.io/badge/FastAPI-0.109-009688?style=flat-square&logo=fastapi)](https://fastapi.tiangolo.com)
 
1
+ ---
2
+ title: Diabetes Disease Outcome AI System ML
3
+ emoji: 🩺
4
+ colorFrom: green
5
+ colorTo: teal
6
+ sdk: docker
7
+ app_port: 7860
8
+ pinned: false
9
+ ---
10
+
11
  # DDOPS-AI: Inference & Explanation Engine
12
 
13
  [![Framework](https://img.shields.io/badge/FastAPI-0.109-009688?style=flat-square&logo=fastapi)](https://fastapi.tiangolo.com)
app.py CHANGED
@@ -50,7 +50,7 @@ async def lifespan(app: FastAPI):
50
 
51
  # Shutdown
52
  logger.info("Shutting down...")
53
- ModelArtifacts.get_instance().clear()
54
 
55
  app = FastAPI(
56
  title=settings.PROJECT_NAME,
@@ -107,4 +107,4 @@ app.include_router(explain.router, prefix=settings.API_V1_STR)
107
 
108
  if __name__ == "__main__":
109
  import uvicorn
110
- uvicorn.run("app:app", host="0.0.0.0", port=8000, reload=True)
 
50
 
51
  # Shutdown
52
  logger.info("Shutting down...")
53
+ get_artifacts().clear()
54
 
55
  app = FastAPI(
56
  title=settings.PROJECT_NAME,
 
107
 
108
  if __name__ == "__main__":
109
  import uvicorn
110
+ uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)