Dalageo commited on
Commit
2fcdfd7
·
verified ·
1 Parent(s): 47e834e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "963LYK-E4A8XXUHW4" # 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,7 +51,7 @@ final_answer = FinalAnswerTool()
51
  model = HfApiModel(
52
  max_tokens=2096,
53
  temperature=0.5,
54
- model_id='https://luht8fo5jxiffo7c.us-east4.gcp.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
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