Spaces:
Runtime error
Runtime error
updated the field for component to store blob og glb
Browse files- weaviate_utils.py +3 -0
weaviate_utils.py
CHANGED
@@ -23,6 +23,8 @@ def init_client():
|
|
23 |
|
24 |
|
25 |
|
|
|
|
|
26 |
try:
|
27 |
client = init_client()
|
28 |
client.collections.create(
|
@@ -36,6 +38,7 @@ try:
|
|
36 |
wvc.config.Property(name="FeildsOfStudy", data_type=wvc.config.DataType.TEXT_ARRAY),
|
37 |
wvc.config.Property(name="ToolName", data_type=wvc.config.DataType.TEXT),
|
38 |
wvc.config.Property(name="Tags", data_type=wvc.config.DataType.TEXT_ARRAY),
|
|
|
39 |
]
|
40 |
)
|
41 |
finally:
|
|
|
23 |
|
24 |
|
25 |
|
26 |
+
x = 0
|
27 |
+
|
28 |
try:
|
29 |
client = init_client()
|
30 |
client.collections.create(
|
|
|
38 |
wvc.config.Property(name="FeildsOfStudy", data_type=wvc.config.DataType.TEXT_ARRAY),
|
39 |
wvc.config.Property(name="ToolName", data_type=wvc.config.DataType.TEXT),
|
40 |
wvc.config.Property(name="Tags", data_type=wvc.config.DataType.TEXT_ARRAY),
|
41 |
+
wvc.config.Property(name="GlbBlob", data_type=wvc.config.DataType.BLOB),
|
42 |
]
|
43 |
)
|
44 |
finally:
|