Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -66,7 +66,7 @@ class QueryModel(BaseModel):
|
|
66 |
data_format: str = Query(default="Structured data", description="Type of data to extract from the internet",
|
67 |
enum=["No presets", "Structured data", "Quantitative data"])
|
68 |
|
69 |
-
|
70 |
async def generate_report(query: QueryModel):
|
71 |
query_str = query.topic
|
72 |
description = query.description
|
|
|
66 |
data_format: str = Query(default="Structured data", description="Type of data to extract from the internet",
|
67 |
enum=["No presets", "Structured data", "Quantitative data"])
|
68 |
|
69 |
+
@cache(expire=604800)
|
70 |
async def generate_report(query: QueryModel):
|
71 |
query_str = query.topic
|
72 |
description = query.description
|