Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,7 +154,7 @@ class SuperSmartAgent:
|
|
| 154 |
# Default fallback code
|
| 155 |
code = """
|
| 156 |
def calculate():
|
| 157 |
-
return
|
| 158 |
|
| 159 |
result = calculate()
|
| 160 |
print(result)
|
|
@@ -166,7 +166,7 @@ class SuperSmartAgent:
|
|
| 166 |
|
| 167 |
try:
|
| 168 |
result = code_interpreter(code)
|
| 169 |
-
state["response"] = f"
|
| 170 |
except Exception as e:
|
| 171 |
state["response"] = f"Error executing Python code: {str(e)}"
|
| 172 |
|
|
|
|
| 154 |
# Default fallback code
|
| 155 |
code = """
|
| 156 |
def calculate():
|
| 157 |
+
return 5
|
| 158 |
|
| 159 |
result = calculate()
|
| 160 |
print(result)
|
|
|
|
| 166 |
|
| 167 |
try:
|
| 168 |
result = code_interpreter(code)
|
| 169 |
+
state["response"] = f"{result}"
|
| 170 |
except Exception as e:
|
| 171 |
state["response"] = f"Error executing Python code: {str(e)}"
|
| 172 |
|