Spaces:
Running
Running
amaye15
commited on
Commit
·
0ba3d8c
1
Parent(s):
e0b1978
Debug - Remove Column Removal
Browse files
src/api/services/huggingface_service.py
CHANGED
@@ -16,7 +16,7 @@ class HuggingFaceService:
|
|
16 |
"""Push the dataset to Hugging Face Hub."""
|
17 |
try:
|
18 |
logger.info(f"Creating Hugging Face Dataset: {dataset_name}...")
|
19 |
-
ds = Dataset.from_pandas(df).remove_columns("__index_level_0__")
|
20 |
ds.push_to_hub(dataset_name)
|
21 |
logger.info(f"Dataset pushed to Hugging Face Hub: {dataset_name}")
|
22 |
except Exception as e:
|
|
|
16 |
"""Push the dataset to Hugging Face Hub."""
|
17 |
try:
|
18 |
logger.info(f"Creating Hugging Face Dataset: {dataset_name}...")
|
19 |
+
ds = Dataset.from_pandas(df) # .remove_columns("__index_level_0__")
|
20 |
ds.push_to_hub(dataset_name)
|
21 |
logger.info(f"Dataset pushed to Hugging Face Hub: {dataset_name}")
|
22 |
except Exception as e:
|