MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / handle_keyboard_interrupt

Function handle_keyboard_interrupt

toolbench/inference/toolbench_server.py:169–171  ·  view source on GitHub ↗
(signal, frame)

Source from the content-addressed store, hash-verified

167 }), status=200, mimetype='application/json')
168
169def handle_keyboard_interrupt(signal, frame):
170 global model
171 exit(0)
172
173signal.signal(signal.SIGINT, handle_keyboard_interrupt)
174

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected