Skip to content

Commit

Permalink
Update sandbox_checker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Jan 13, 2025
1 parent 6b9b6ee commit 64ebcbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sandbox_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import requests


sandbox_port = 63710
def run_ipython(code):
return {
'action': {
Expand Down Expand Up @@ -31,10 +31,10 @@ def run(command):

def execute_action(data):
data = json.dumps(data)
for timeout in range(1, 2):
for timeout in [600,]:
try:
response = requests.post(
'http://localhost:63712/execute_action', data=data, timeout=timeout
f'http://localhost:{sandbox_port}/execute_action', data=data, timeout=timeout
)
print(response.json()['content'].replace('\r', ''))
break
Expand Down

0 comments on commit 64ebcbd

Please sign in to comment.