Florent Gbelidji commited on
Commit
21b955b
·
verified ·
1 Parent(s): 5cacb35

Sync DeepSeek OCR HF job code

Browse files
Files changed (1) hide show
  1. ds_batch_ocr/stages.py +1 -17
ds_batch_ocr/stages.py CHANGED
@@ -687,23 +687,7 @@ def publish_dataset_viewer_assets(
687
  }
688
  )
689
 
690
- features = Features(
691
- {
692
- "sample_id": Value("string"),
693
- "dataset_index": Value("int64"),
694
- "document_markdown_path": Value("string"),
695
- "document_markdown_text": Value("string"),
696
- "figures": Sequence(
697
- {
698
- "figure_id": Value("string"),
699
- "image_path": Value("string"),
700
- "description": Value("string"),
701
- }
702
- ),
703
- }
704
- )
705
-
706
- dataset = Dataset.from_list(normalized, features=features)
707
  token = env_or_none("HF_TOKEN")
708
  try:
709
  dataset.push_to_hub(
 
687
  }
688
  )
689
 
690
+ dataset = Dataset.from_list(normalized)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
691
  token = env_or_none("HF_TOKEN")
692
  try:
693
  dataset.push_to_hub(