muhammadnoman76 commited on
Commit
1dc181f
·
1 Parent(s): 9c17d7c
Files changed (1) hide show
  1. app/main.py +12 -1
app/main.py CHANGED
@@ -7,6 +7,9 @@ from dotenv import load_dotenv
7
  from app.config.config import Config
8
  from app.routers import admin, auth, chat, location, preferences, profile, questionnaire, language, chat_session
9
  from app.routers import agent_chat
 
 
 
10
  load_dotenv()
11
 
12
  app = FastAPI(title="Skin AI API")
@@ -39,4 +42,12 @@ app.include_router(agent_chat.router, prefix="/api", tags=["agent_chat"])
39
 
40
  @app.get("/")
41
  async def root():
42
- return {"message": "API is running", "status": "healthy"}
 
 
 
 
 
 
 
 
 
7
  from app.config.config import Config
8
  from app.routers import admin, auth, chat, location, preferences, profile, questionnaire, language, chat_session
9
  from app.routers import agent_chat
10
+ import requests
11
+ from huggingface_hub import configure_http_backend
12
+
13
  load_dotenv()
14
 
15
  app = FastAPI(title="Skin AI API")
 
42
 
43
  @app.get("/")
44
  async def root():
45
+ return {"message": "API is running", "status": "healthy"}
46
+
47
+
48
+ def backend_factory() -> requests.Session:
49
+ session = requests.Session()
50
+ session.verify = False
51
+ return session
52
+
53
+ configure_http_backend(backend_factory=backend_factory)