parent
							
								
									2f5cc97b74
								
							
						
					
					
						commit
						51b000ca88
					
				| @ -0,0 +1,4 @@ | ||||
| """ | ||||
| Watches the kernel. When it sees something that passes a filter, | ||||
| it sends POST request with that to /computer. | ||||
| """ | ||||
| @ -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) | ||||
					Loading…
					
					
				
		Reference in new issue