Spaces:
Runtime error
Runtime error
fix: image type.
Browse files
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]],
|