Spaces:
Build error
Build error
Update article_generator.py
Browse files- article_generator.py +1 -1
article_generator.py
CHANGED
|
@@ -42,7 +42,7 @@ class EnhancedTavilySearchTool:
|
|
| 42 |
'search_depth': 'advanced'
|
| 43 |
}
|
| 44 |
response = requests.post('https://api.tavily.com/search', json=params)
|
| 45 |
-
if response.status_code == 200
|
| 46 |
return response.json()['results']
|
| 47 |
else:
|
| 48 |
raise Exception(f"Failed to fetch data from Tavily API: {response.status_code}, {response.text}")
|
|
|
|
| 42 |
'search_depth': 'advanced'
|
| 43 |
}
|
| 44 |
response = requests.post('https://api.tavily.com/search', json=params)
|
| 45 |
+
if response.status_code == 200:
|
| 46 |
return response.json()['results']
|
| 47 |
else:
|
| 48 |
raise Exception(f"Failed to fetch data from Tavily API: {response.status_code}, {response.text}")
|