quentinL52 commited on
Commit
a24accd
·
1 Parent(s): 102a4fb
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -11,6 +11,10 @@ from fastapi.middleware.cors import CORSMiddleware
11
  from src.services.cv_service import parse_cv
12
  from langtrace_python_sdk import langtrace
13
 
 
 
 
 
14
  # Optional: Langtrace initialization
15
  LANGTRACE_API_KEY = os.getenv("LANGTRACE_API_KEY")
16
  if LANGTRACE_API_KEY:
@@ -18,8 +22,6 @@ if LANGTRACE_API_KEY:
18
  else:
19
  logger.warning("LANGTRACE_API_KEY not found. Langtrace tracing is disabled.")
20
 
21
- logging.basicConfig(level=logging.INFO)
22
- logger = logging.getLogger(__name__)
23
 
24
  app = FastAPI(
25
  title="CV Parser API",
 
11
  from src.services.cv_service import parse_cv
12
  from langtrace_python_sdk import langtrace
13
 
14
+
15
+ logging.basicConfig(level=logging.INFO)
16
+ logger = logging.getLogger(__name__)
17
+
18
  # Optional: Langtrace initialization
19
  LANGTRACE_API_KEY = os.getenv("LANGTRACE_API_KEY")
20
  if LANGTRACE_API_KEY:
 
22
  else:
23
  logger.warning("LANGTRACE_API_KEY not found. Langtrace tracing is disabled.")
24
 
 
 
25
 
26
  app = FastAPI(
27
  title="CV Parser API",