aniruddh1907 commited on
Commit
29dea46
Β·
1 Parent(s): a1f0fd6

[bugfix] Enable Graphviz for Hugging Face Space

Browse files
Files changed (2) hide show
  1. app.py +6 -6
  2. apt.txt +1 -0
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
- 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
 
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