Update main.py
Browse files
main.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
from fastapi.middleware.cors import CORSMiddleware
|
| 3 |
from app.api.routers.v1 import outfitmatch, health, tryon, occasion, whatfits, size_comparision, mannequin, detail_shots,two_object_size,background_edit,multi_view,editorial
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
app = FastAPI(
|
| 6 |
title="Vendor Usecase App",
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
from fastapi.middleware.cors import CORSMiddleware
|
| 3 |
from app.api.routers.v1 import outfitmatch, health, tryon, occasion, whatfits, size_comparision, mannequin, detail_shots,two_object_size,background_edit,multi_view,editorial
|
| 4 |
+
import logging
|
| 5 |
+
|
| 6 |
+
# Basic logging config so logs appear in Space's container logs.
|
| 7 |
+
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(levelname)s %(name)s: %(message)s")
|
| 8 |
|
| 9 |
app = FastAPI(
|
| 10 |
title="Vendor Usecase App",
|