bmarlin96 commited on
Commit
cb70f9e
·
verified ·
1 Parent(s): fe36f09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -35,11 +35,12 @@ def sigmoid_transform(x1: float, x2: float, x3: float) -> dict:
35
  def sigmoid(x):
36
  return 1 / (1 + math.exp(-x))
37
 
38
- return {
39
- "x1_sigmoid": sigmoid(x1),
40
- "x2_sigmoid": sigmoid(x2),
41
- "x3_sigmoid": sigmoid(x3)
42
- }
 
43
 
44
  @tool
45
  def my_custom_tool(arg1: str, arg2: int) -> str:
 
35
  def sigmoid(x):
36
  return 1 / (1 + math.exp(-x))
37
 
38
+ return (
39
+ "### 🔥 Sigmoid Transformation Results\n"
40
+ f"- **x1 = {x1}** → σ(x1) = `{sigmoid(x1):.4f}`\n"
41
+ f"- **x2 = {x2}** → σ(x2) = `{sigmoid(x2):.4f}`\n"
42
+ f"- **x3 = {x3}** → σ(x3) = `{sigmoid(x3):.4f}`\n"
43
+ )
44
 
45
  @tool
46
  def my_custom_tool(arg1: str, arg2: int) -> str: