Dalageo commited on
Commit
82cb402
·
verified ·
1 Parent(s): cdbba9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -12,8 +12,12 @@ from Gradio_UI import GradioUI
12
  def calculator_tool(expression: str)-> str: # Returns a string result
13
  """
14
  A tool that evaluates a mathematical expression using the Wolfram Alpha API.
 
15
  Args:
16
  expression: A string of the mathematical expression to evaluate (e.g., "1+2", "3*5").
 
 
 
17
  """
18
  try:
19
  # app_id = "replace_with_your_Wolfram_ID" # Your Wolfram Alpha App ID
 
12
  def calculator_tool(expression: str)-> str: # Returns a string result
13
  """
14
  A tool that evaluates a mathematical expression using the Wolfram Alpha API.
15
+
16
  Args:
17
  expression: A string of the mathematical expression to evaluate (e.g., "1+2", "3*5").
18
+
19
+ Returns:
20
+ str: The result of the calculation or an error message if the request fails.
21
  """
22
  try:
23
  # app_id = "replace_with_your_Wolfram_ID" # Your Wolfram Alpha App ID