Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ css = """
|
|
| 92 |
footer {visibility: hidden}
|
| 93 |
"""
|
| 94 |
|
| 95 |
-
with gr.Blocks(theme="
|
| 96 |
gr.Markdown("# 🌟 NSFW 图片分类器")
|
| 97 |
gr.Markdown(description)
|
| 98 |
|
|
@@ -108,8 +108,8 @@ with gr.Blocks(theme="huggingface", css=css) as demo:
|
|
| 108 |
"./example/anime.jpg",
|
| 109 |
"./example/real.jpg"
|
| 110 |
]
|
| 111 |
-
gr.
|
| 112 |
-
|
| 113 |
submit_btn.click(predict, inputs=image_input, outputs=output_label)
|
| 114 |
|
| 115 |
# 启动 Web 界面
|
|
|
|
| 92 |
footer {visibility: hidden}
|
| 93 |
"""
|
| 94 |
|
| 95 |
+
with gr.Blocks(theme="glass", css=css) as demo:
|
| 96 |
gr.Markdown("# 🌟 NSFW 图片分类器")
|
| 97 |
gr.Markdown(description)
|
| 98 |
|
|
|
|
| 108 |
"./example/anime.jpg",
|
| 109 |
"./example/real.jpg"
|
| 110 |
]
|
| 111 |
+
gr.Examples(examples=examples, inputs=image_input, label="点击上传示例图片")
|
| 112 |
+
|
| 113 |
submit_btn.click(predict, inputs=image_input, outputs=output_label)
|
| 114 |
|
| 115 |
# 启动 Web 界面
|