Skip to content

Commit 95a9aef

Browse files
author
Sidhant Thole
committed
updating subprocess for infinity_emb
1 parent dafb9f2 commit 95a9aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def load_model(model_name,
133133
logger.info("Infinity API not running. Attempting to start it...")
134134
try:
135135
subprocess.Popen(
136-
["infinity_emb", "v2", "--model-id", model_name],
136+
[os.path.join(os.path.dirname(__file__), "..", "infinity_env", "bin", "infinity_emb"), "v2", "--model-id", model_name],
137137
stdout=subprocess.DEVNULL,
138138
stderr=subprocess.DEVNULL,
139139
)

0 commit comments

Comments
 (0)