Spaces:
Sleeping
Sleeping
Update dataset_previews.py
Browse files- dataset_previews.py +2 -2
dataset_previews.py
CHANGED
@@ -37,7 +37,7 @@ def mmlupro_dataset_preview() -> Dict[str, Any]:
|
|
37 |
# Read existing preview file
|
38 |
with open(preview_file, 'r') as f:
|
39 |
preview_data = json.load(f)
|
40 |
-
return
|
41 |
except Exception as e:
|
42 |
print(f"Error reading preview file: {e}")
|
43 |
# If file exists but can't be read, regenerate it
|
@@ -83,7 +83,7 @@ def mmlupro_dataset_preview() -> Dict[str, Any]:
|
|
83 |
except Exception as e:
|
84 |
print(f"Error writing preview file: {e}")
|
85 |
|
86 |
-
return
|
87 |
|
88 |
def format_preview_for_display(preview_data: Dict[str, Any]) -> pd.DataFrame:
|
89 |
"""
|
|
|
37 |
# Read existing preview file
|
38 |
with open(preview_file, 'r') as f:
|
39 |
preview_data = json.load(f)
|
40 |
+
return preview_data
|
41 |
except Exception as e:
|
42 |
print(f"Error reading preview file: {e}")
|
43 |
# If file exists but can't be read, regenerate it
|
|
|
83 |
except Exception as e:
|
84 |
print(f"Error writing preview file: {e}")
|
85 |
|
86 |
+
return preview_data
|
87 |
|
88 |
def format_preview_for_display(preview_data: Dict[str, Any]) -> pd.DataFrame:
|
89 |
"""
|