coolblaze03's picture
Upload folder using huggingface_hub
907001b verified
Raw
History Blame Contribute Delete
483 Bytes
def _embed(self, request, response):
"""pass"""
if self._match(request, response):
head = render_to_string('chosenadmin/_head_css.html', {'chosen_css': self._chosen_css()})
body = render_to_string('chosenadmin/_script.html', {'chosen_js': self._chosen_js()})
content = response.rendered_content
content = content.replace('</head>', head)
content = content.replace('</body>', body)
response.content = content
return response