Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -122,9 +122,9 @@ def predict_sketch(image=None, text=None, sketch=None):
|
|
122 |
title = "Upload an image to search in the Nasjonalbiblioteket"
|
123 |
description = "Find images in the Nasjonalbiblioteket image collections based on images you upload"
|
124 |
interface = gr.Interface(
|
125 |
-
fn=
|
126 |
inputs=["image"],
|
127 |
-
outputs=[gr.outputs.Label(num_top_classes=3)
|
128 |
title=title,
|
129 |
description=description,
|
130 |
examples=sample_images,
|
122 |
title = "Upload an image to search in the Nasjonalbiblioteket"
|
123 |
description = "Find images in the Nasjonalbiblioteket image collections based on images you upload"
|
124 |
interface = gr.Interface(
|
125 |
+
fn=predict_image,
|
126 |
inputs=["image"],
|
127 |
+
outputs=[gr.outputs.Label(num_top_classes=3), gr.outputs.Image(type="file"), gr.outputs.Image(type="file"), gr.outputs.Image(type="file")],
|
128 |
title=title,
|
129 |
description=description,
|
130 |
examples=sample_images,
|