versae commited on
Commit
9cf0542
1 Parent(s): 31b4d57

Update app.py

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