Spaces:
Sleeping
Sleeping
Update src/chat_langraph.py
Browse files- src/chat_langraph.py +2 -2
src/chat_langraph.py
CHANGED
|
@@ -165,7 +165,7 @@ def plot_graph(expression: str, variable: str = "x", range_start: float = 0, ran
|
|
| 165 |
Plot a graph from a dynamic expression.
|
| 166 |
|
| 167 |
Args:
|
| 168 |
-
expression (str): Python expression as a function of variable (e.g., "2*x + 3")
|
| 169 |
variable (str): Variable name to use in expression (default: "x").
|
| 170 |
range_start (float): Start of variable range.
|
| 171 |
range_end (float): End of variable range.
|
|
@@ -202,7 +202,7 @@ def plot_graph(expression: str, variable: str = "x", range_start: float = 0, ran
|
|
| 202 |
plt.savefig(filename)
|
| 203 |
plt.close()
|
| 204 |
|
| 205 |
-
return f"
|
| 206 |
|
| 207 |
except Exception as e:
|
| 208 |
return f"Error plotting graph: {e}"
|
|
|
|
| 165 |
Plot a graph from a dynamic expression.
|
| 166 |
|
| 167 |
Args:
|
| 168 |
+
expression (str): Python expression as a function of variable (e.g., "2*x + 3") (Allowed math library functions of python )
|
| 169 |
variable (str): Variable name to use in expression (default: "x").
|
| 170 |
range_start (float): Start of variable range.
|
| 171 |
range_end (float): End of variable range.
|
|
|
|
| 202 |
plt.savefig(filename)
|
| 203 |
plt.close()
|
| 204 |
|
| 205 |
+
return f"Filepath:{filename}"
|
| 206 |
|
| 207 |
except Exception as e:
|
| 208 |
return f"Error plotting graph: {e}"
|