Mahdiyar
commited on
Commit
·
33b6737
1
Parent(s):
95dd06a
app.py
CHANGED
@@ -69,7 +69,7 @@ def _run_python(code: str,globals_dict:Dict[str,Any]={},locals_dict:Dict[str,Any
|
|
69 |
class PythonCodeInterpreter:
|
70 |
executed_default_codes = False
|
71 |
PYTHON_VERSION = "3.11"
|
72 |
-
|
73 |
app = None
|
74 |
_app_run_python = None
|
75 |
_globals_dict = {}
|
@@ -93,8 +93,7 @@ class PythonCodeInterpreter:
|
|
93 |
self.pip_packages = list(set(["cloudpickle"]+pip_packages))
|
94 |
self.lazy_init = lazy_init
|
95 |
self.create_app(self.modal_secrets,self.pip_packages,self.code_tools)
|
96 |
-
|
97 |
-
self.sandbox = self.create_sandbox(modal_secrets,pip_packages,self.code_tools)
|
98 |
|
99 |
def create_app(self,modal_secrets:Dict[str,Union[str,None]],pip_packages:List[str]=[],code_tools:List[Dict[str,Any]]=[]):
|
100 |
|
|
|
69 |
class PythonCodeInterpreter:
|
70 |
executed_default_codes = False
|
71 |
PYTHON_VERSION = "3.11"
|
72 |
+
sandbox_name = "tinycodeagent-sandbox"
|
73 |
app = None
|
74 |
_app_run_python = None
|
75 |
_globals_dict = {}
|
|
|
93 |
self.pip_packages = list(set(["cloudpickle"]+pip_packages))
|
94 |
self.lazy_init = lazy_init
|
95 |
self.create_app(self.modal_secrets,self.pip_packages,self.code_tools)
|
96 |
+
|
|
|
97 |
|
98 |
def create_app(self,modal_secrets:Dict[str,Union[str,None]],pip_packages:List[str]=[],code_tools:List[Dict[str,Any]]=[]):
|
99 |
|