Spaces:
Configuration error
Configuration error
Update main.py
Browse files
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/')
|