Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -68,7 +68,7 @@ class QueryModel(BaseModel):
|
|
68 |
|
69 |
@app.post("/generate_report")
|
70 |
@cache(expire=3600)
|
71 |
-
async def generate_report(
|
72 |
query_str = query.topic
|
73 |
description = query.description
|
74 |
user_id = query.user_id
|
|
|
68 |
|
69 |
@app.post("/generate_report")
|
70 |
@cache(expire=3600)
|
71 |
+
async def generate_report(query: QueryModel):
|
72 |
query_str = query.topic
|
73 |
description = query.description
|
74 |
user_id = query.user_id
|