Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,6 @@ def predict(image):
|
|
18 |
gr.Interface(
|
19 |
predict, # 预测函数
|
20 |
inputs=gr.inputs.Image(label="上传管道内窥检测图片", type="filepath"), # 图片上传输入组件
|
21 |
-
outputs=gr.outputs.Label(
|
22 |
title="内窥检测隐患识别", # 接口标题
|
23 |
).launch() # 启动接口
|
|
|
18 |
gr.Interface(
|
19 |
predict, # 预测函数
|
20 |
inputs=gr.inputs.Image(label="上传管道内窥检测图片", type="filepath"), # 图片上传输入组件
|
21 |
+
outputs=gr.outputs.Label(num_top_classes=5), # 标签输出组件
|
22 |
title="内窥检测隐患识别", # 接口标题
|
23 |
).launch() # 启动接口
|