KBaba7 commited on
Commit
bc407ae
·
verified ·
1 Parent(s): a84ef5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -33,11 +33,7 @@ def convert_to_gguf(model_dir, output_file):
33
  os.makedirs(os.path.dirname(output_file), exist_ok=True)
34
  st.write(model_dir_path)
35
  cmd = [
36
- "python3",
37
- f"{model_dir_path}/convert_hf_to_gguf.py",
38
- "--model", model_dir,
39
- "--outtype f16",
40
- "--outfile", output_file
41
  ]
42
  process = subprocess.run(cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
43
  if process.returncode == 0:
 
33
  os.makedirs(os.path.dirname(output_file), exist_ok=True)
34
  st.write(model_dir_path)
35
  cmd = [
36
+ f"python3 {model_dir_path}/convert_hf_to_gguf.py {model_dir} --outtype f16 --outfile {output_file}"
 
 
 
 
37
  ]
38
  process = subprocess.run(cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
39
  if process.returncode == 0: