Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -3,9 +3,9 @@ from pydantic import BaseModel
|
|
3 |
from motor.motor_asyncio import AsyncIOMotorClient
|
4 |
from typing import List, Optional
|
5 |
from fastapi.middleware.cors import CORSMiddleware
|
6 |
-
|
7 |
# MongoDB connection URI
|
8 |
-
MONGO_URI =
|
9 |
|
10 |
# Initialize FastAPI app
|
11 |
app = FastAPI()
|
|
|
3 |
from motor.motor_asyncio import AsyncIOMotorClient
|
4 |
from typing import List, Optional
|
5 |
from fastapi.middleware.cors import CORSMiddleware
|
6 |
+
inport os
|
7 |
# MongoDB connection URI
|
8 |
+
MONGO_URI = os.getenv("MONGO_URI") #""
|
9 |
|
10 |
# Initialize FastAPI app
|
11 |
app = FastAPI()
|