MCPcopy
hub / github.com/microsoft/JARVIS / record_case

Function record_case

hugginggpt/server/awesome_chat.py:245–252  ·  view source on GitHub ↗
(success, **args)

Source from the content-addressed store, hash-verified

243 return id.strip(), reason.strip(), choose
244
245def record_case(success, **args):
246 if success:
247 f = open("logs/log_success.jsonl", "a")
248 else:
249 f = open("logs/log_fail.jsonl", "a")
250 log = args
251 f.write(json.dumps(log) + "\n")
252 f.close()
253
254def image_to_bytes(img_url):
255 img_byte = io.BytesIO()

Callers 2

run_taskFunction · 0.85
chat_huggingfaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected