Spaces:
Runtime error
Runtime error
Commit
·
b00ab3d
1
Parent(s):
f6b0858
"Updated App"
Browse files- gradio-model-ui-app.py +3 -2
gradio-model-ui-app.py
CHANGED
@@ -28,7 +28,8 @@ def predict(img, dir_path):
|
|
28 |
|
29 |
title = "TM-TKO Trademark Logo Image Classification Model"
|
30 |
description = "Users can upload an image and corresponding image file name to get US design-code standard predictions on a trained model that utilizes the benchmark ResNet50 architecture."
|
31 |
-
gr.Interface(fn=predict,
|
32 |
inputs=[gr.inputs.Image(type="pil", label="Upload Logo Here"), gr.inputs.Textbox(label="Enter File Name")],
|
33 |
outputs=gr.Label(num_top_classes=3, label="TM-TKO Trademark Classification Model"),
|
34 |
-
title=title, description=description)
|
|
|
|
28 |
|
29 |
title = "TM-TKO Trademark Logo Image Classification Model"
|
30 |
description = "Users can upload an image and corresponding image file name to get US design-code standard predictions on a trained model that utilizes the benchmark ResNet50 architecture."
|
31 |
+
model_ui = gr.Interface(fn=predict,
|
32 |
inputs=[gr.inputs.Image(type="pil", label="Upload Logo Here"), gr.inputs.Textbox(label="Enter File Name")],
|
33 |
outputs=gr.Label(num_top_classes=3, label="TM-TKO Trademark Classification Model"),
|
34 |
+
title=title, description=description)
|
35 |
+
model_ui.launch()
|