Spaces:
Running
on
Zero
Running
on
Zero
File size: 941 Bytes
0e59015 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import modelscope_studio.components.antd as antd
import modelscope_studio.components.base as ms
def Logo(model_display=None):
"""Logo component with optional model display"""
with antd.Flex(vertical=True, gap="small", align="center", elem_style=dict(padding=8)):
with antd.Typography.Title(level=1,
elem_style=dict(fontSize=24,
margin=0)):
with antd.Flex(align="center", gap="small", justify="center"):
antd.Image('./assets/m-boxed-rainbow.png',
preview=False,
alt="logo",
width=24,
height=24)
ms.Span("Ministrals Demo")
# Display model name if provided
if model_display is not None:
with antd.Flex(justify="center"):
model_display
|