Update app.py
Browse files
app.py
CHANGED
|
@@ -115,11 +115,12 @@ class FashionItem(LanceModel):
|
|
| 115 |
"""
|
| 116 |
|
| 117 |
# TODO: Add vector field for embeddings
|
| 118 |
-
vector: Vector(clip_model.ndims())
|
| 119 |
|
| 120 |
|
| 121 |
# TODO: Add image field
|
| 122 |
-
image_uri: str = clip_model.SourceField()
|
|
|
|
| 123 |
|
| 124 |
# TODO: Add text description field
|
| 125 |
description : Optional[str]=None
|
|
|
|
| 115 |
"""
|
| 116 |
|
| 117 |
# TODO: Add vector field for embeddings
|
| 118 |
+
vector: Vector(clip_model.ndims())
|
| 119 |
|
| 120 |
|
| 121 |
# TODO: Add image field
|
| 122 |
+
image_uri: str = clip_model.SourceField() # Without this assignment vector field has to be added as embeded image.
|
| 123 |
+
# With this assignment, we don't need to append record to save into vector.
|
| 124 |
|
| 125 |
# TODO: Add text description field
|
| 126 |
description : Optional[str]=None
|