MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / postprocess

Function postprocess

moss_web_demo_gradio.py:68–76  ·  view source on GitHub ↗
(self, y)

Source from the content-addressed store, hash-verified

66
67
68def postprocess(self, y):
69 if y is None:
70 return []
71 for i, (message, response) in enumerate(y):
72 y[i] = (
73 None if message is None else mdtex2html.convert((message)),
74 None if response is None else mdtex2html.convert(response),
75 )
76 return y
77
78
79gr.Chatbot.postprocess = postprocess

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected