rohansampath commited on
Commit
22c1e11
·
verified ·
1 Parent(s): 6896b10

Update dataset_previews.py

Browse files
Files changed (1) hide show
  1. 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 format_preview_for_display(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,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 format_preview_for_display(preview_data)
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
  """