Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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(
|