gustproof commited on
Commit
f615499
1 Parent(s): 1026aeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]:.1f})" for d, i in zip(D[0], I[0])]
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: