Spaces:
Runtime error
Runtime error
Update my_tools.py
Browse files- my_tools.py +1 -1
my_tools.py
CHANGED
@@ -24,7 +24,7 @@ def knowledge_and_intelligence_tool(query: str)-> str:
|
|
24 |
Returns:
|
25 |
A string containing the answer for the query.
|
26 |
"""
|
27 |
-
api_key = os.environ["
|
28 |
formatted_query = parse.quote_plus(query)
|
29 |
url = f"http://api.wolframalpha.com/v2/query?appid={api_key}&input={formatted_query}&output=json&format=plaintext"
|
30 |
for key in WOLFRAM_RESPONSE_KEYS:
|
|
|
24 |
Returns:
|
25 |
A string containing the answer for the query.
|
26 |
"""
|
27 |
+
api_key = os.environ["WOLFRAM_ALPHA_APPID"]
|
28 |
formatted_query = parse.quote_plus(query)
|
29 |
url = f"http://api.wolframalpha.com/v2/query?appid={api_key}&input={formatted_query}&output=json&format=plaintext"
|
30 |
for key in WOLFRAM_RESPONSE_KEYS:
|