quantumiracle-git commited on
Commit
4496485
·
1 Parent(s): 3460634

Update hfserver.py

Browse files
Files changed (1) hide show
  1. hfserver.py +5 -5
hfserver.py CHANGED
@@ -324,13 +324,13 @@ class HuggingFaceDatasetSaver(FlaggingCallback):
324
  filepath = component.save_flagged(
325
  self.dataset_dir, component.label, sample, None
326
  )
 
 
 
 
 
327
  except:
328
  pass
329
- csv_data.append(filepath)
330
- if isinstance(component, tuple(file_preview_types)):
331
- csv_data.append(
332
- "{}/resolve/main/{}".format(self.path_to_dataset_repo, filepath)
333
- )
334
  csv_data.append(flag_option if flag_option is not None else "")
335
  writer.writerow(csv_data)
336
 
 
324
  filepath = component.save_flagged(
325
  self.dataset_dir, component.label, sample, None
326
  )
327
+ csv_data.append(filepath)
328
+ if isinstance(component, tuple(file_preview_types)):
329
+ csv_data.append(
330
+ "{}/resolve/main/{}".format(self.path_to_dataset_repo, filepath)
331
+ )
332
  except:
333
  pass
 
 
 
 
 
334
  csv_data.append(flag_option if flag_option is not None else "")
335
  writer.writerow(csv_data)
336