sayakpaul HF staff commited on
Commit
01d1259
1 Parent(s): 9b30e14

fix: image type.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def query(image, top_k):
62
  # Not sure what the best for this demo is.
63
  gr.Interface(
64
  query,
65
- inputs=[gr.Image(), gr.Slider(value=5, minimum=1, maximum=10, step=1)],
66
  outputs=gr.Gallery(),
67
  # Filenames denote the integer labels. Know here: https://hf.co/datasets/beans
68
  examples=[["0.png", 5], ["1.png", 5], ["2.png", 5]],
 
62
  # Not sure what the best for this demo is.
63
  gr.Interface(
64
  query,
65
+ inputs=[gr.Image(type="pil"), gr.Slider(value=5, minimum=1, maximum=10, step=1)],
66
  outputs=gr.Gallery(),
67
  # Filenames denote the integer labels. Know here: https://hf.co/datasets/beans
68
  examples=[["0.png", 5], ["1.png", 5], ["2.png", 5]],