Compare commits

...
2 Commits
Author SHA1 Message Date
Frost Ming 56a9cb88ac fix: pin bentoml version (#42)
Signed-off-by: Frost Ming <me@frostming.com>
2025-02-04 19:19:59 +08:00
Frost Ming d15c4c54ad fix: don't import bentoml at setup (#41)
Signed-off-by: Frost Ming <me@frostming.com>
2025-02-04 19:18:53 +08:00
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ authors = [{ name = "Frost Ming", email = "frost@bentoml.com" }]
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"bentoml>=1.3.13",
"bentoml>=1.3.21",
"click>=8.1.7",
"comfy-cli>=1.2.8",
]
+1 -1
View File
@@ -1,4 +1,4 @@
bentoml
bentoml>=1.3.21
fastapi
comfy-cli
duckduckgo-search
+4 -4
View File
@@ -22,12 +22,12 @@ def _get_workspace() -> tuple[Path, dict]:
import hashlib
import json
from bentoml._internal.configuration.containers import BentoMLContainer
bentoml_home = os.getenv(
"BENTOML_HOME", os.path.join(os.path.expanduser("~"), "bentoml")
)
checksum = hashlib.md5(SNAPSHOT.strip().encode("utf8")).hexdigest()
wp = (
Path(BentoMLContainer.bentoml_home.get()) / "run" / "comfy_workspace" / checksum
)
wp = Path(bentoml_home) / "run" / "comfy_workspace" / checksum
wp.parent.mkdir(parents=True, exist_ok=True)
return wp, json.loads(SNAPSHOT)