Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -225,9 +225,9 @@ else:
|
|
| 225 |
def get_start_index():
|
| 226 |
if hf_fs.exists(output_repo_path + '/' + get_base_path()):
|
| 227 |
files = hf_fs.ls(output_repo_path + '/' + get_base_path())
|
| 228 |
-
return len(files)
|
| 229 |
else:
|
| 230 |
-
return -
|
| 231 |
|
| 232 |
def read_data():
|
| 233 |
with hf_fs.open(input_repo_path + '/' + to_annotate_file_name) as f:
|
|
|
|
| 225 |
def get_start_index():
|
| 226 |
if hf_fs.exists(output_repo_path + '/' + get_base_path()):
|
| 227 |
files = hf_fs.ls(output_repo_path + '/' + get_base_path())
|
| 228 |
+
return len(files) #-1
|
| 229 |
else:
|
| 230 |
+
return -2
|
| 231 |
|
| 232 |
def read_data():
|
| 233 |
with hf_fs.open(input_repo_path + '/' + to_annotate_file_name) as f:
|