Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def calculator_tool(expression: str)-> str: # Returns a string result
|
|
| 19 |
The result of the calculation.
|
| 20 |
"""
|
| 21 |
try:
|
| 22 |
-
app_id = "
|
| 23 |
api_url = f"https://api.wolframalpha.com/v1/result?appid={app_id}&i={expression}"
|
| 24 |
|
| 25 |
response = requests.get(api_url)
|
|
@@ -51,7 +51,7 @@ final_answer = FinalAnswerTool()
|
|
| 51 |
model = HfApiModel(
|
| 52 |
max_tokens=2096,
|
| 53 |
temperature=0.5,
|
| 54 |
-
model_id='
|
| 55 |
custom_role_conversions=None,
|
| 56 |
)
|
| 57 |
|
|
|
|
| 19 |
The result of the calculation.
|
| 20 |
"""
|
| 21 |
try:
|
| 22 |
+
app_id = "replace_with_your_Wolfram_ID" # Your Wolfram Alpha App ID
|
| 23 |
api_url = f"https://api.wolframalpha.com/v1/result?appid={app_id}&i={expression}"
|
| 24 |
|
| 25 |
response = requests.get(api_url)
|
|
|
|
| 51 |
model = HfApiModel(
|
| 52 |
max_tokens=2096,
|
| 53 |
temperature=0.5,
|
| 54 |
+
model_id='replace_with_your_inference_endpoint',# Replace with your inference endpoint
|
| 55 |
custom_role_conversions=None,
|
| 56 |
)
|
| 57 |
|