Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,11 +49,6 @@ def ai_act_search_tool(query: str, max_results: int = 5) -> dict:
|
|
| 49 |
Args:
|
| 50 |
query : The search query related to the AI Act.
|
| 51 |
max_results : The maximum number of search results to return.
|
| 52 |
-
|
| 53 |
-
Returns:
|
| 54 |
-
dict: A dictionary containing:
|
| 55 |
-
- "ai_insight" : AI-generated insights on the AI Act query.
|
| 56 |
-
- "articles" : A list of dictionaries containing article titles and URLs.
|
| 57 |
"""
|
| 58 |
# Step 1: Get AI Model Insights
|
| 59 |
ai_response = ai_regulation_model.generate(prompt=f"Provide insights on: {query} related to the AI Act.")
|
|
|
|
| 49 |
Args:
|
| 50 |
query : The search query related to the AI Act.
|
| 51 |
max_results : The maximum number of search results to return.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
"""
|
| 53 |
# Step 1: Get AI Model Insights
|
| 54 |
ai_response = ai_regulation_model.generate(prompt=f"Provide insights on: {query} related to the AI Act.")
|