Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
hg_app.py
CHANGED
@@ -50,7 +50,7 @@ def get_example_txt_list():
|
|
50 |
return txt_list
|
51 |
|
52 |
|
53 |
-
def gen_save_folder(max_size=
|
54 |
os.makedirs(SAVE_DIR, exist_ok=True)
|
55 |
exists = set(int(_) for _ in os.listdir(SAVE_DIR) if not _.startswith("."))
|
56 |
cur_id = min(set(range(max_size)) - exists) if len(exists) < max_size else -1
|
|
|
50 |
return txt_list
|
51 |
|
52 |
|
53 |
+
def gen_save_folder(max_size=60):
|
54 |
os.makedirs(SAVE_DIR, exist_ok=True)
|
55 |
exists = set(int(_) for _ in os.listdir(SAVE_DIR) if not _.startswith("."))
|
56 |
cur_id = min(set(range(max_size)) - exists) if len(exists) < max_size else -1
|