Spaces:
Sleeping
Sleeping
Update app.py
Browse filesFixed return type.
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
-
def run_powerflow_simulation(grid_id: int):
|
| 24 |
"""A tool that runs a powerflow simulation and returns the results.
|
| 25 |
Args:
|
| 26 |
grid_id: Integer of the grid id.
|
|
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
+
def run_powerflow_simulation(grid_id: int) -> np.ndarray:
|
| 24 |
"""A tool that runs a powerflow simulation and returns the results.
|
| 25 |
Args:
|
| 26 |
grid_id: Integer of the grid id.
|