Spaces:
Build error
Build error
Commit
Β·
29dea46
1
Parent(s):
a1f0fd6
[bugfix] Enable Graphviz for Hugging Face Space
Browse files
app.py
CHANGED
@@ -28,12 +28,12 @@ together_client = Together(api_key=TOGETHER_TOKEN)
|
|
28 |
image_client = InferenceClient(token=HF_TOKEN) # default model set later
|
29 |
|
30 |
# Optional Graphviz path helper (Windows ONLY (RIP Gotham))
|
31 |
-
if shutil.which("dot") is None:
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
# ββββββββββββββββββββββββββββββββ
|
39 |
# LLM templates
|
|
|
28 |
image_client = InferenceClient(token=HF_TOKEN) # default model set later
|
29 |
|
30 |
# Optional Graphviz path helper (Windows ONLY (RIP Gotham))
|
31 |
+
# if shutil.which("dot") is None:
|
32 |
+
# gv_path = r"C:\Program Files\Graphviz\bin"
|
33 |
+
# if os.path.exists(gv_path):
|
34 |
+
# os.environ["PATH"] = gv_path + os.pathsep + os.environ["PATH"]
|
35 |
+
# else:
|
36 |
+
# sys.exit("Graphviz not found. Please install Graphviz or remove the check.")
|
37 |
|
38 |
# ββββββββββββββββββββββββββββββββ
|
39 |
# LLM templates
|
apt.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
graphviz
|