Spaces:
Paused
Paused
Commit
·
985f2ba
1
Parent(s):
9da18aa
Update app_v3.py
Browse files
app_v3.py
CHANGED
@@ -13,7 +13,7 @@ quantized_model_dir = cwd + "/Jackson2-4bit-128g-GPTQ"
|
|
13 |
# Check if the model directory is empty (i.e., model not downloaded yet)
|
14 |
if not os.listdir(quantized_model_dir):
|
15 |
# Create the cache directory if it doesn't exist
|
16 |
-
os.makedirs(quantized_model_dir
|
17 |
snapshot_download(repo_id=pretrained_model_dir, local_dir=quantized_model_dir, local_dir_use_symlinks=True)
|
18 |
|
19 |
st.write(f'{os.listdir(quantized_model_dir)}')
|
|
|
13 |
# Check if the model directory is empty (i.e., model not downloaded yet)
|
14 |
if not os.listdir(quantized_model_dir):
|
15 |
# Create the cache directory if it doesn't exist
|
16 |
+
os.makedirs(quantized_model_dir)
|
17 |
snapshot_download(repo_id=pretrained_model_dir, local_dir=quantized_model_dir, local_dir_use_symlinks=True)
|
18 |
|
19 |
st.write(f'{os.listdir(quantized_model_dir)}')
|