Spaces:
Running
Running
Girish Jeswani commited on
Commit ·
e97bd0e
1
Parent(s): a90ba14
fix env load before router
Browse files
multi_llm_chatbot_backend/app/main.py
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
from fastapi.middleware.cors import CORSMiddleware
|
| 3 |
-
from app.api.routes import router
|
| 4 |
-
from dotenv import load_dotenv
|
| 5 |
import logging
|
| 6 |
-
|
| 7 |
|
| 8 |
logging.basicConfig(
|
| 9 |
level=logging.INFO,
|
| 10 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
| 11 |
)
|
| 12 |
|
| 13 |
-
load_dotenv()
|
| 14 |
|
| 15 |
app = FastAPI(
|
| 16 |
title="Multi-LLM Chatbot Backend",
|
|
|
|
| 1 |
+
from dotenv import load_dotenv
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
load_dotenv()
|
| 5 |
+
|
| 6 |
from fastapi import FastAPI
|
| 7 |
from fastapi.middleware.cors import CORSMiddleware
|
| 8 |
+
from app.api.routes import router
|
|
|
|
| 9 |
import logging
|
| 10 |
+
|
| 11 |
|
| 12 |
logging.basicConfig(
|
| 13 |
level=logging.INFO,
|
| 14 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
| 15 |
)
|
| 16 |
|
|
|
|
| 17 |
|
| 18 |
app = FastAPI(
|
| 19 |
title="Multi-LLM Chatbot Backend",
|