Spaces:
Running
Running
Update tests.py
Browse files
tests.py
CHANGED
@@ -147,8 +147,8 @@ def run(cmd, timeout_sec,forever_cmd):
|
|
147 |
command="cd /app/code_interpreter/ && "+cmd
|
148 |
|
149 |
Parent.sendline(command)
|
150 |
-
Parent.readline.decode()
|
151 |
-
return str(Parent.readline.decode())
|
152 |
t=time.time()
|
153 |
child = pexpect.spawn("bash")
|
154 |
output=""
|
@@ -427,5 +427,5 @@ def deepthinking3(query:str,info:str) -> dict:
|
|
427 |
|
428 |
if __name__ == "__main__":
|
429 |
# Initialize and run the server
|
430 |
-
pexpect.spawn('ngrok http 1337
|
431 |
mcp.run(transport='stdio')
|
|
|
147 |
command="cd /app/code_interpreter/ && "+cmd
|
148 |
|
149 |
Parent.sendline(command)
|
150 |
+
Parent.readline().decode()
|
151 |
+
return str(Parent.readline().decode())
|
152 |
t=time.time()
|
153 |
child = pexpect.spawn("bash")
|
154 |
output=""
|
|
|
427 |
|
428 |
if __name__ == "__main__":
|
429 |
# Initialize and run the server
|
430 |
+
pexpect.spawn('bash').sendline("ngrok http 1337")
|
431 |
mcp.run(transport='stdio')
|