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

Update hfserver.py

Browse files
Files changed (1) hide show
  1. hfserver.py +6 -3
hfserver.py CHANGED
@@ -320,9 +320,12 @@ class HuggingFaceDatasetSaver(FlaggingCallback):
320
  # Generate the row corresponding to the flagged sample
321
  csv_data = []
322
  for component, sample in zip(self.components, flag_data):
323
- filepath = component.save_flagged(
324
- self.dataset_dir, component.label, sample, None
325
- )
 
 
 
326
  csv_data.append(filepath)
327
  if isinstance(component, tuple(file_preview_types)):
328
  csv_data.append(
 
320
  # Generate the row corresponding to the flagged sample
321
  csv_data = []
322
  for component, sample in zip(self.components, flag_data):
323
+ try:
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(