Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -62,7 +62,7 @@ async def startup():
|
|
62 |
FastAPICache.init(InMemoryBackend(), prefix="fastapi-cache")
|
63 |
|
64 |
@app.post("/generate_report")
|
65 |
-
|
66 |
async def generate_report(request: Request, query: QueryModel):
|
67 |
query_str = query.topic
|
68 |
description = query.description
|
|
|
62 |
FastAPICache.init(InMemoryBackend(), prefix="fastapi-cache")
|
63 |
|
64 |
@app.post("/generate_report")
|
65 |
+
#@cache(expire=60 * 60 * 24 * 7) # Cache for 7 days
|
66 |
async def generate_report(request: Request, query: QueryModel):
|
67 |
query_str = query.topic
|
68 |
description = query.description
|