versae commited on
Commit
973d811
1 Parent(s): 945c529

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=[predict_sketch],
108
  inputs=["sketchpad"],
109
- outputs=[gr.outputs.Label(num_top_classes=3)] + 3 * [gr.outputs.Image(type="file")],
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