Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
chenge
commited on
Commit
·
a985bfc
1
Parent(s):
59bc8b3
v3
Browse files
app.py
CHANGED
@@ -923,6 +923,7 @@ class Gradio_Events:
|
|
923 |
gr.update(value=state_value),
|
924 |
gr.update(count=0, elem_style=dict(display="block")), # 左侧绿色指示器显示0
|
925 |
gr.update(elem_style=dict(display="none")), # 隐藏垃圾桶按钮
|
|
|
926 |
)
|
927 |
|
928 |
|
@@ -1538,7 +1539,7 @@ with gr.Blocks(css=css, fill_width=True) as demo:
|
|
1538 |
)
|
1539 |
) as stop_btn:
|
1540 |
with ms.Slot("icon"):
|
1541 |
-
antd.Icon("
|
1542 |
with ms.Slot("prefix"):
|
1543 |
# Image Upload Button with Counter - 图片上传按钮
|
1544 |
with antd.Space(size="small"):
|
@@ -1665,7 +1666,7 @@ with gr.Blocks(css=css, fill_width=True) as demo:
|
|
1665 |
# 清空图片事件 - 垃圾桶按钮
|
1666 |
trash_button.click(fn=Gradio_Events.clear_images,
|
1667 |
inputs=[state],
|
1668 |
-
outputs=[state, green_image_indicator, trash_button])
|
1669 |
|
1670 |
submit_event = sender.submit(fn=Gradio_Events.submit,
|
1671 |
inputs=[sender, state],
|
|
|
923 |
gr.update(value=state_value),
|
924 |
gr.update(count=0, elem_style=dict(display="block")), # 左侧绿色指示器显示0
|
925 |
gr.update(elem_style=dict(display="none")), # 隐藏垃圾桶按钮
|
926 |
+
gr.update(value=None), # 清空图片上传组件
|
927 |
)
|
928 |
|
929 |
|
|
|
1539 |
)
|
1540 |
) as stop_btn:
|
1541 |
with ms.Slot("icon"):
|
1542 |
+
antd.Icon("PauseCircleOutlined")
|
1543 |
with ms.Slot("prefix"):
|
1544 |
# Image Upload Button with Counter - 图片上传按钮
|
1545 |
with antd.Space(size="small"):
|
|
|
1666 |
# 清空图片事件 - 垃圾桶按钮
|
1667 |
trash_button.click(fn=Gradio_Events.clear_images,
|
1668 |
inputs=[state],
|
1669 |
+
outputs=[state, green_image_indicator, trash_button, image_upload])
|
1670 |
|
1671 |
submit_event = sender.submit(fn=Gradio_Events.submit,
|
1672 |
inputs=[sender, state],
|