Spaces:
Runtime error
Runtime error
abtsousa
commited on
Commit
·
e214909
1
Parent(s):
b36f428
Fix code interpreter tool.
Browse files
tools/code_interpreter.py
CHANGED
|
@@ -32,6 +32,7 @@ def execute_code_multilang(code: str, language: str = "python") -> str:
|
|
| 32 |
if language not in supported_languages:
|
| 33 |
return f"❌ Unsupported language: {language}. Supported languages are: {', '.join(supported_languages)}"
|
| 34 |
|
|
|
|
| 35 |
result = interpreter_instance.execute_code(code, language=language)
|
| 36 |
|
| 37 |
response = []
|
|
|
|
| 32 |
if language not in supported_languages:
|
| 33 |
return f"❌ Unsupported language: {language}. Supported languages are: {', '.join(supported_languages)}"
|
| 34 |
|
| 35 |
+
interpreter_instance = CodeInterpreter()
|
| 36 |
result = interpreter_instance.execute_code(code, language=language)
|
| 37 |
|
| 38 |
response = []
|