jais2003 commited on
Commit
22856fe
·
verified ·
1 Parent(s): 47b8840

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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()) = clip_model.VectorField()
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