KBaba7 commited on
Commit
5f5a51c
·
verified ·
1 Parent(s): 1cee58f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -3,6 +3,12 @@ import subprocess
3
  import streamlit as st
4
  from huggingface_hub import snapshot_download
5
 
 
 
 
 
 
 
6
  def check_directory_path(directory_name: str) -> str:
7
  if os.path.exists(directory_name):
8
  path = os.path.abspath(directory_name)
 
3
  import streamlit as st
4
  from huggingface_hub import snapshot_download
5
 
6
+ import subprocess
7
+
8
+ # Recompile llama.cpp before running
9
+ subprocess.run(["make", "clean"], cwd="/home/user/app/llama.cpp", check=True)
10
+ subprocess.run(["make"], cwd="/home/user/app/llama.cpp", check=True)
11
+
12
  def check_directory_path(directory_name: str) -> str:
13
  if os.path.exists(directory_name):
14
  path = os.path.abspath(directory_name)