Spaces:
Sleeping
Sleeping
tensorkelechi
commited on
Commit
•
9812662
1
Parent(s):
e4c4ba8
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ def embed_data(dataset):
|
|
47 |
return embedded_data, embedder
|
48 |
|
49 |
@stl.cache_resource
|
50 |
-
def init_search(_embedded_data,
|
51 |
-
text_search = ripple.TextSearch(_embedded_data,
|
52 |
stl.success("Initialized text search class")
|
53 |
return text_search
|
54 |
|
|
|
47 |
return embedded_data, embedder
|
48 |
|
49 |
@stl.cache_resource
|
50 |
+
def init_search(_embedded_data, _embedder):
|
51 |
+
text_search = ripple.TextSearch(_embedded_data, _embedder.embed_model)
|
52 |
stl.success("Initialized text search class")
|
53 |
return text_search
|
54 |
|