Commit
•
09a5aa4
1
Parent(s):
f37320f
Update app.py
Browse files
app.py
CHANGED
@@ -236,15 +236,11 @@ class Application:
|
|
236 |
tasks.append({"action": "translation", "args": list(component.values())})
|
237 |
|
238 |
elif wtype == "embeddings":
|
239 |
-
index = component.pop("index")
|
240 |
upsert = component.pop("upsert")
|
241 |
|
242 |
data["embeddings"] = component
|
243 |
data["writable"] = True
|
244 |
|
245 |
-
if index:
|
246 |
-
data["path"] = index
|
247 |
-
|
248 |
name = "index"
|
249 |
tasks.append({"action": "upsert" if upsert else "index"})
|
250 |
|
|
|
236 |
tasks.append({"action": "translation", "args": list(component.values())})
|
237 |
|
238 |
elif wtype == "embeddings":
|
|
|
239 |
upsert = component.pop("upsert")
|
240 |
|
241 |
data["embeddings"] = component
|
242 |
data["writable"] = True
|
243 |
|
|
|
|
|
|
|
244 |
name = "index"
|
245 |
tasks.append({"action": "upsert" if upsert else "index"})
|
246 |
|