Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -384,9 +384,17 @@ def mandatory_enhancement(rgb_img):
|
|
| 384 |
|
| 385 |
# --------------------- API Endpoints ---------------------
|
| 386 |
@fastapi_app.get("/")
|
| 387 |
-
def root():
|
| 388 |
-
|
| 389 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 390 |
@fastapi_app.get("/health")
|
| 391 |
async def health():
|
| 392 |
return {"status": "healthy"}
|
|
|
|
| 384 |
|
| 385 |
# --------------------- API Endpoints ---------------------
|
| 386 |
@fastapi_app.get("/")
|
| 387 |
+
async def root():
|
| 388 |
+
"""Root endpoint"""
|
| 389 |
+
return {
|
| 390 |
+
"success": True,
|
| 391 |
+
"message": "FaceSwap API",
|
| 392 |
+
"data": {
|
| 393 |
+
"version": "1.0.0",
|
| 394 |
+
"Product Name":"Beauty Camera - GlowCam AI Studio",
|
| 395 |
+
"Released By" : "LogicGo Infotech"
|
| 396 |
+
}
|
| 397 |
+
}
|
| 398 |
@fastapi_app.get("/health")
|
| 399 |
async def health():
|
| 400 |
return {"status": "healthy"}
|