codeinterpreter-api
codeinterpreter-api copied to clipboard
Streamlit Error
Prompt: Let's set up the following recurrence relation in sympy: T(n) = 2T\left(\frac{n}{2}\right) + O(\frac{n}{ \log n})`
The work done is computed in the O() portion, and the recurrence relation is defined by T(n). N may be assumed to be powers of two. Set this up, and be extra careful when unrolling.
First set up the recurrence relation using sympy. After doing so, use sympy to unroll the equation once.
After unrolling it once, at T(n/2), you should get T(n/2) = 2T(n/4) + O ((n/2)/(log(n/2)). `
Output: Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x15ae24ed0> Unclosed connector connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x15aed3770>, 50180.340346166)]'] connector: <aiohttp.connector.TCPConnector object at 0x15a987cd0> Exception ignored in: <function BaseSubprocessTransport.del at 0x1036eb1a0> Traceback (most recent call last): File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_subprocess.py", line 126, in del self.close() File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_subprocess.py", line 104, in close proto.pipe.close() File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/unix_events.py", line 566, in close self._close(None) File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/unix_events.py", line 590, in _close self._loop.call_soon(self._call_connection_lost, exc) File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 761, in call_soon self._check_closed() File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed 2023-09-06 23:10:10.066 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/websockets/legacy/http.py", line 120, in read_response status_line = await read_line(stream) ^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/websockets/legacy/http.py", line 200, in read_line raise EOFError("line without CRLF") EOFError: line without CRLF
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/websockets/legacy/client.py", line 139, in read_http_response status_code, reason, headers = await read_response(self.reader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/websockets/legacy/http.py", line 122, in read_response raise EOFError("connection closed while reading HTTP status line") from exc EOFError: connection closed while reading HTTP status line
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/Users/darin/PycharmProjects/codeinterpreter-api/frontend/app.py", line 38, in