Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ row_size = 5
|
|
54 |
|
55 |
def f(im):
|
56 |
D, I = index.search(get_emb(im), n_outputs)
|
57 |
-
return [f"Distance: {d}\n![]({urls[i]
|
58 |
|
59 |
print("preparing gradio")
|
60 |
with gr.Blocks() as demo:
|
|
|
54 |
|
55 |
def f(im):
|
56 |
D, I = index.search(get_emb(im), n_outputs)
|
57 |
+
return [f"Distance: {d:.1f}\n![]({urls[i]})" for d, i in zip(D[0], I[0])]
|
58 |
|
59 |
print("preparing gradio")
|
60 |
with gr.Blocks() as demo:
|