test
Browse files
app.py
CHANGED
|
@@ -349,6 +349,24 @@ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ ov
|
|
| 349 |
)
|
| 350 |
|
| 351 |
with gr.Tab("🥇 Leaderboard"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 352 |
|
| 353 |
with antd.Layout(elem_style=layout_style):
|
| 354 |
with antd.Layout.Sider(width="25%",
|
|
@@ -362,25 +380,7 @@ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ ov
|
|
| 362 |
text_output = gr.Textbox(label="Processed Text")
|
| 363 |
text_button = gr.Button("Process Text")
|
| 364 |
with antd.Layout.Footer(elem_style=footer_style):
|
| 365 |
-
|
| 366 |
-
with ms.Slot("cover"):
|
| 367 |
-
antd.Image(
|
| 368 |
-
value=
|
| 369 |
-
"https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png",
|
| 370 |
-
preview=False,
|
| 371 |
-
width="100%",
|
| 372 |
-
alt="example")
|
| 373 |
-
with ms.Slot("actions"):
|
| 374 |
-
antd.Icon("SettingOutlined")
|
| 375 |
-
antd.Icon("EditOutlined")
|
| 376 |
-
antd.Icon("EllipsisOutlined")
|
| 377 |
-
with antd.Card.Meta(title="Card title",
|
| 378 |
-
description="This is the description"):
|
| 379 |
-
with ms.Slot("avatar"):
|
| 380 |
-
antd.Avatar(
|
| 381 |
-
"https://api.dicebear.com/7.x/miniavs/svg?seed=8"
|
| 382 |
-
)
|
| 383 |
-
|
| 384 |
|
| 385 |
text_button.click(
|
| 386 |
fn=lambda x: x.upper(), # Example function to convert text to uppercase
|
|
|
|
| 349 |
)
|
| 350 |
|
| 351 |
with gr.Tab("🥇 Leaderboard"):
|
| 352 |
+
with antd.Card(elem_style=dict(width=300)):
|
| 353 |
+
with ms.Slot("cover"):
|
| 354 |
+
antd.Image(
|
| 355 |
+
value=
|
| 356 |
+
"https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png",
|
| 357 |
+
preview=False,
|
| 358 |
+
width="100%",
|
| 359 |
+
alt="example")
|
| 360 |
+
with ms.Slot("actions"):
|
| 361 |
+
antd.Icon("SettingOutlined")
|
| 362 |
+
antd.Icon("EditOutlined")
|
| 363 |
+
antd.Icon("EllipsisOutlined")
|
| 364 |
+
with antd.Card.Meta(title="Card title",
|
| 365 |
+
description="This is the description"):
|
| 366 |
+
with ms.Slot("avatar"):
|
| 367 |
+
antd.Avatar(
|
| 368 |
+
"https://api.dicebear.com/7.x/miniavs/svg?seed=8"
|
| 369 |
+
)
|
| 370 |
|
| 371 |
with antd.Layout(elem_style=layout_style):
|
| 372 |
with antd.Layout.Sider(width="25%",
|
|
|
|
| 380 |
text_output = gr.Textbox(label="Processed Text")
|
| 381 |
text_button = gr.Button("Process Text")
|
| 382 |
with antd.Layout.Footer(elem_style=footer_style):
|
| 383 |
+
ms.Text("wtf")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
|
| 385 |
text_button.click(
|
| 386 |
fn=lambda x: x.upper(), # Example function to convert text to uppercase
|