Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def ImgEmbed(image: Image.Image):
|
|
54 |
img_emb = vision_model(**inputs).last_hidden_state
|
55 |
img_embeddings = F.normalize(img_emb[:, 0], p=2, dim=1)
|
56 |
|
57 |
-
return img_embeddings[0].tolist()
|
58 |
|
59 |
# Gradio UI
|
60 |
with gr.Blocks() as demo:
|
|
|
54 |
img_emb = vision_model(**inputs).last_hidden_state
|
55 |
img_embeddings = F.normalize(img_emb[:, 0], p=2, dim=1)
|
56 |
|
57 |
+
return img_embeddings[0].tolist()
|
58 |
|
59 |
# Gradio UI
|
60 |
with gr.Blocks() as demo:
|