Spaces:
Configuration error

yonkasoft commited on
Commit
15f3506
1 Parent(s): 8312f72

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -1,8 +1,12 @@
1
  from fastapi import FastAPI
2
  from pydantic import BaseModel
 
3
  import os
4
  app = FastAPI()
5
 
 
 
 
6
  model = load_model()
7
 
8
  client = MongoClient('mongodb://localhost:27017/')
 
1
  from fastapi import FastAPI
2
  from pydantic import BaseModel
3
+
4
  import os
5
  app = FastAPI()
6
 
7
+ @app.get("/")
8
+ async def root():
9
+ return {"message": "Hello World"}
10
  model = load_model()
11
 
12
  client = MongoClient('mongodb://localhost:27017/')