Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -42,7 +42,7 @@ API_URL = "https://pvanand-code-execution-files-v4.hf.space"
|
|
| 42 |
@tool
|
| 43 |
def execute_python(code: str) -> str:
|
| 44 |
"""Execute Python code in an IPython interactiveshell and return the output.
|
| 45 |
-
|
| 46 |
Args:
|
| 47 |
code: The Python code to execute
|
| 48 |
|
|
@@ -71,8 +71,6 @@ def execute_python(code: str) -> str:
|
|
| 71 |
scipy
|
| 72 |
geopy
|
| 73 |
mapbox
|
| 74 |
-
|
| 75 |
-
Artifacts are automatically rendered in the UI hence no need to provide links to them.
|
| 76 |
"""
|
| 77 |
|
| 78 |
#print(config)
|
|
|
|
| 42 |
@tool
|
| 43 |
def execute_python(code: str) -> str:
|
| 44 |
"""Execute Python code in an IPython interactiveshell and return the output.
|
| 45 |
+
The returned artifacts (if present) are automatically rendered in the UI and visible to the user.
|
| 46 |
Args:
|
| 47 |
code: The Python code to execute
|
| 48 |
|
|
|
|
| 71 |
scipy
|
| 72 |
geopy
|
| 73 |
mapbox
|
|
|
|
|
|
|
| 74 |
"""
|
| 75 |
|
| 76 |
#print(config)
|