Rauhan commited on
Commit
fe1a1e0
·
1 Parent(s): d7a51f0

UPDATE: exportToDashboard

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  from analyticsHub.routers import authentication, projectManager, dataLoader, reportingTool, utilities, blends, dashboard
2
  from fastapi.middleware.cors import CORSMiddleware
 
3
  from supabase import create_client
4
  from fastapi import FastAPI
5
  import uvicorn
@@ -26,6 +27,10 @@ app.add_middleware(
26
  allow_methods = ["*"],
27
  allow_headers = ["*"],
28
  )
 
 
 
 
29
 
30
  app.include_router(authentication.router, prefix = "/auth", tags = ["Authentication"])
31
  app.include_router(projectManager.router, prefix = "/projects", tags = ["Project Management"])
 
1
  from analyticsHub.routers import authentication, projectManager, dataLoader, reportingTool, utilities, blends, dashboard
2
  from fastapi.middleware.cors import CORSMiddleware
3
+ from api_analytics.fastapi import Analytics
4
  from supabase import create_client
5
  from fastapi import FastAPI
6
  import uvicorn
 
27
  allow_methods = ["*"],
28
  allow_headers = ["*"],
29
  )
30
+ app.add_middleware(
31
+ Analytics,
32
+ api_key = os.environ["FASTAPI_ANALYTICS_KEY"]
33
+ )
34
 
35
  app.include_router(authentication.router, prefix = "/auth", tags = ["Authentication"])
36
  app.include_router(projectManager.router, prefix = "/projects", tags = ["Project Management"])
requirements.txt CHANGED
@@ -22,6 +22,7 @@ langchain-core
22
  langchain-groq
23
  langchain-cerebras
24
  langchain-experimental
 
25
  langgraph
26
  fireducks
27
  dataclasses
 
22
  langchain-groq
23
  langchain-cerebras
24
  langchain-experimental
25
+ fastapi-analytics
26
  langgraph
27
  fireducks
28
  dataclasses