ktllc commited on
Commit
345caa6
·
1 Parent(s): ad91d57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def find_similarity(base64_image, text_input):
38
  text_features /= text_features.norm(dim=-1, keepdim=True)
39
  similarity = (text_features @ image_features.T).squeeze(0).cpu().numpy()
40
 
41
- return similarity[0, 0]
42
 
43
  # Create a Gradio interface
44
  iface = gr.Interface(
 
38
  text_features /= text_features.norm(dim=-1, keepdim=True)
39
  similarity = (text_features @ image_features.T).squeeze(0).cpu().numpy()
40
 
41
+ return similarity
42
 
43
  # Create a Gradio interface
44
  iface = gr.Interface(