Spaces:
Runtime error
Runtime error
NoName
commited on
Commit
·
24b523d
1
Parent(s):
77e4300
Add application file
Browse files
app.py
CHANGED
@@ -19,5 +19,5 @@ learn = load_learner(model_path)
|
|
19 |
image = gr.inputs.Image(shape=(224, 224))
|
20 |
label = gr.outputs.Label()
|
21 |
|
22 |
-
iface = gr.Interface(fn=load_model_and_predict, inputs=image, outputs=label)
|
23 |
iface.launch()
|
|
|
19 |
image = gr.inputs.Image(shape=(224, 224))
|
20 |
label = gr.outputs.Label()
|
21 |
|
22 |
+
iface = gr.Interface(fn=load_model_and_predict, inputs=image, outputs=label, title='兽耳娘分类器', description='这是一个基于resnet18训练的玩具模型,可以将输入的~二次元~图画分类为:'bunny girl/兔兔', 'cat neko girl/猫娘', 'fox kitsune girl/狐娘', 'wolfgirl/狼娘'四类。 \n 每类均使用15张随机画作或冻鳗截图训练,该模型的分类正确率受裁剪方法、图画构图、角色姿势等多种因素影响,准确率难以保证,仅供娱乐。 \n 08/28/23')
|
23 |
iface.launch()
|