Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def calculator_tool(expression: str)-> str: # Returns a string result
|
|
| 25 |
if response.status_code == 200:
|
| 26 |
return f"Result: {response.json()}"
|
| 27 |
else:
|
| 28 |
-
|
| 29 |
except Exception as e:
|
| 30 |
return f"Error: {str(e)}"
|
| 31 |
|
|
|
|
| 25 |
if response.status_code == 200:
|
| 26 |
return f"Result: {response.json()}"
|
| 27 |
else:
|
| 28 |
+
return f"Error: {response.text}"
|
| 29 |
except Exception as e:
|
| 30 |
return f"Error: {str(e)}"
|
| 31 |
|