Spaces:
Sleeping
Sleeping
Update api/cumulative_analysis.py
Browse files
api/cumulative_analysis.py
CHANGED
@@ -2,6 +2,9 @@ from openai import OpenAI
|
|
2 |
import json, os, asyncio
|
3 |
from typing import Dict, Any
|
4 |
from .calc_consumption_context import get_consumption_context
|
|
|
|
|
|
|
5 |
|
6 |
@app.post("/cumulative-analysis")
|
7 |
def generate_final_analysis(request):
|
|
|
2 |
import json, os, asyncio
|
3 |
from typing import Dict, Any
|
4 |
from .calc_consumption_context import get_consumption_context
|
5 |
+
from fastapi import FastAPI
|
6 |
+
|
7 |
+
app = FastAPI()
|
8 |
|
9 |
@app.post("/cumulative-analysis")
|
10 |
def generate_final_analysis(request):
|