Spaces:
Paused
Paused
File size: 445 Bytes
4c9b469 82cb440 4c9b469 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import json
class IdleOutputer:
def output(self, content=None, content_type=None):
return json.dumps({}).encode("utf-8")
class ContentJSONOutputer:
def output(self, content=None, content_type=None):
return (
json.dumps(
{
"content": content,
"content_type": content_type,
}
)
+ "\n"
).encode("utf-8")
|