DiffuseCraft / utils /html_utils.py
zerhero's picture
refactor
7b997f3
raw
history blame
456 Bytes
def info_html(json_data, title, subtitle):
"""
:param json_data:
:param title:
:param subtitle:
:return:
"""
return f"""
<div style='padding: 0; border-radius: 10px;'>
<p style='margin: 0; font-weight: bold;'>{title}</p>
<details>
<summary>Details</summary>
<p style='margin: 0; font-weight: bold;'>{subtitle}</p>
</details>
</div>
"""