Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,8 @@ 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 |
-
|
|
|
37 |
]
|
38 |
process = subprocess.run(cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
39 |
if process.returncode == 0:
|
|
|
33 |
os.makedirs(os.path.dirname(output_file), exist_ok=True)
|
34 |
st.write(model_dir_path)
|
35 |
cmd = [
|
36 |
+
"python3", f"{model_dir_path}/convert_hf_to_gguf.py", model_dir,
|
37 |
+
"--outtype", "f16", "--outfile", output_file
|
38 |
]
|
39 |
process = subprocess.run(cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
40 |
if process.returncode == 0:
|