Changes in schemas.py
Might have fixed symbol issue
This commit is contained in:
1 parent
e2d689a84c
commit
c1dcf4b055
1 file changed
+1
-1
@@ -25,7 +25,7 @@ class ModifiedBaseModel(PydanticBaseModel):
|
||||
return {
|
||||
'id': v.id,
|
||||
'label': v.label,
|
||||
'image': v.image.tolist()
|
||||
'image': v.image.tolist() if hasattr(v.image, 'tolist') else v.image
|
||||
}
|
||||
if isinstance(v, Embedding):
|
||||
return {'data': v.data.tolist()}
|
||||
|
||||
Reference in new issue
Block a user