Skip to content

Commit

Permalink
Remove pip install step
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Aug 15, 2023
1 parent 1f42bee commit e653b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/moderne/ai/EmbeddingModelClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void start() {
if (!Files.exists(pyLauncher)) {
Files.copy(requireNonNull(EmbeddingModelClient.class.getResourceAsStream("/get_em.py")), pyLauncher);
}
exec("/usr/bin/python3 -m pip install --no-python-version-warning --disable-pip-version-check gradio transformers", true);
// exec("/usr/bin/python3 -m pip install --no-python-version-warning --disable-pip-version-check gradio transformers torch", true);
exec(String.format("HUGGING_FACE_TOKEN=%s /usr/bin/python3 %s/get_em.py", huggingFaceToken, MODELS_DIR), false);
if (!checkForUp()) {
throw new IllegalStateException("Unable to start model daemon");
Expand Down

0 comments on commit e653b19

Please sign in to comment.