Spaces:
Sleeping
Sleeping
findEthics Claude commited on
Commit ·
dca2bc9
1
Parent(s): 41b6a61
Clean up commented API key line
Browse filesRemoved commented hardcoded API key reference for cleaner code.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -218,7 +218,7 @@ def classify_query(prompt: str) -> str:
|
|
| 218 |
def search_brave(query: str, max_results: int = 5) -> List[Dict[str, Any]]:
|
| 219 |
"""Search using Brave Search API"""
|
| 220 |
try:
|
| 221 |
-
api_key = os.getenv('BRAVE_API_KEY')
|
| 222 |
if not api_key:
|
| 223 |
logger.error("BRAVE_API_KEY environment variable not set")
|
| 224 |
return []
|
|
|
|
| 218 |
def search_brave(query: str, max_results: int = 5) -> List[Dict[str, Any]]:
|
| 219 |
"""Search using Brave Search API"""
|
| 220 |
try:
|
| 221 |
+
api_key = os.getenv('BRAVE_API_KEY')
|
| 222 |
if not api_key:
|
| 223 |
logger.error("BRAVE_API_KEY environment variable not set")
|
| 224 |
return []
|