LogicGoInfotechSpaces commited on
Commit
acfa98e
·
verified ·
1 Parent(s): 499287b

Update api/main.py

Browse files
Files changed (1) hide show
  1. api/main.py +1 -5
api/main.py CHANGED
@@ -64,11 +64,7 @@ app = FastAPI(title="Photo Object Removal API", version="1.0.0")
64
  file_store: Dict[str, Dict[str, str]] = {}
65
  logs: List[Dict[str, str]] = []
66
 
67
- MONGO_URI = (
68
- os.environ.get("MONGO_URI")
69
- or os.environ.get("MONGODB_URI")
70
- or "mongodb+srv://harilogicgo_db_user:pdnh6UCMsWvuTCoi@kiddoimages.k2a4nuv.mongodb.net/?appName=KiddoImages"
71
- )
72
  mongo_client = MongoClient(MONGO_URI)
73
  mongo_db = mongo_client["object_remover"]
74
  mongo_logs = mongo_db["api_logs"]
 
64
  file_store: Dict[str, Dict[str, str]] = {}
65
  logs: List[Dict[str, str]] = []
66
 
67
+ MONGO_URI = os.environ.get("MONGO_URI")
 
 
 
 
68
  mongo_client = MongoClient(MONGO_URI)
69
  mongo_db = mongo_client["object_remover"]
70
  mongo_logs = mongo_db["api_logs"]