Update app.py
Browse filesadded commentFaiyaz for verification
app.py
CHANGED
|
@@ -35,9 +35,9 @@ def calculator(operation: str, num1: float, num2: float) -> str:
|
|
| 35 |
else:
|
| 36 |
return "Error: Unsupported operation."
|
| 37 |
|
| 38 |
-
return f"The result of {operation}ing {num1} and {num2} is: {result}"
|
| 39 |
except Exception as e:
|
| 40 |
-
return f"Error performing calculation: {str(e)}"
|
| 41 |
|
| 42 |
# tool for attractions
|
| 43 |
@tool
|
|
|
|
| 35 |
else:
|
| 36 |
return "Error: Unsupported operation."
|
| 37 |
|
| 38 |
+
return f"The result of {operation}ing {num1} and {num2} is: {result} :- It was executed by Faiyaz"
|
| 39 |
except Exception as e:
|
| 40 |
+
return f"Error performing calculation: {str(e)} "
|
| 41 |
|
| 42 |
# tool for attractions
|
| 43 |
@tool
|