Spaces:
Paused
Paused
gordonchan
commited on
Commit
•
fe406a1
1
Parent(s):
760cbfd
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ color_list_dict = {"蓝色": (86, 140, 212), "白色": (255, 255, 255), "红色"
|
|
24 |
|
25 |
# 设置Gradio examples
|
26 |
def set_example_image(example: list) -> dict:
|
27 |
-
return gr.ImageEditor
|
28 |
|
29 |
|
30 |
# 检测RGB是否超出范围,如果超出则约束到0~255之间
|
|
|
24 |
|
25 |
# 设置Gradio examples
|
26 |
def set_example_image(example: list) -> dict:
|
27 |
+
return gr.ImageEditor(value=example[0])
|
28 |
|
29 |
|
30 |
# 检测RGB是否超出范围,如果超出则约束到0~255之间
|