Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,9 +104,9 @@ def predict_sketch(sketch):
|
|
104 |
title = "Draw to search in the Nasjonalbiblioteket"
|
105 |
description = "Find images in the Nasjonalbiblioteket image collections based on what you draw"
|
106 |
interface = gr.Interface(
|
107 |
-
fn=
|
108 |
inputs=["sketchpad"],
|
109 |
-
outputs=[gr.outputs.Label(num_top_classes=3)
|
110 |
title=title,
|
111 |
description=description,
|
112 |
live=True
|
|
|
104 |
title = "Draw to search in the Nasjonalbiblioteket"
|
105 |
description = "Find images in the Nasjonalbiblioteket image collections based on what you draw"
|
106 |
interface = gr.Interface(
|
107 |
+
fn=predict_sketch,
|
108 |
inputs=["sketchpad"],
|
109 |
+
outputs=[gr.outputs.Label(num_top_classes=3), gr.outputs.Image(type="file"), gr.outputs.Image(type="file"), gr.outputs.Image(type="file")],
|
110 |
title=title,
|
111 |
description=description,
|
112 |
live=True
|