rahul7star commited on
Commit
b83edbe
·
verified ·
1 Parent(s): 0c3b051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -29
app.py CHANGED
@@ -25,35 +25,6 @@ api = HfApi()
25
  import os
26
  import subprocess
27
 
28
- LLAMA_DIR = "/tmp/llama.cpp"
29
-
30
- if not os.path.exists(LLAMA_DIR):
31
- subprocess.run([
32
- "git",
33
- "clone",
34
- "https://github.com/ggml-org/llama.cpp",
35
- LLAMA_DIR
36
- ], check=True)
37
-
38
- if not os.path.exists(f"{LLAMA_DIR}/build/bin"):
39
- subprocess.run([
40
- "cmake",
41
- "-S",
42
- LLAMA_DIR,
43
- "-B",
44
- f"{LLAMA_DIR}/build"
45
- ], check=True)
46
-
47
- subprocess.run([
48
- "cmake",
49
- "--build",
50
- f"{LLAMA_DIR}/build",
51
- "-j"
52
- ], check=True)
53
-
54
-
55
- PPL_BIN = "/tmp/llama.cpp/build/bin/llama-perplexity"
56
-
57
 
58
 
59
  def list_ggufs(repo_id):
 
25
  import os
26
  import subprocess
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
 
30
  def list_ggufs(repo_id):