Computer docstring

This commit is contained in:
killian 2024-02-03 17:37:41 -08:00
parent 2f5cc97b74
commit 51b000ca88
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,4 @@
"""
Watches the kernel. When it sees something that passes a filter,
it sends POST request with that to /computer.
"""

View File

@ -0,0 +1,9 @@
"""
Exposes a SSE streaming server endpoint at /run, which recieves language and code,
and streams the output.
"""
from interpreter import interpreter
for chunk in interpreter.run(language, code, stream=True):
stream(chunk)