emvecchi commited on
Commit
1d4e35d
·
verified ·
1 Parent(s): 0f8e35d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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) -1
229
  else:
230
- return -1
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: