DrSyedFaizan commited on
Commit
7a22544
Β·
verified Β·
1 Parent(s): ba703bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def clean_text(text):
43
 
44
  # Load and preprocess Reddit Mental Health Dataset
45
  def load_reddit_data(file_path, sample_size=100):
46
- df = pd.read_csv(file_path, sep=",", encoding="utf-8", quoting=csv.QUOTE_ALL, engine="python")
47
  df.columns = df.columns.str.strip() # Remove extra spaces from column names
48
  print("Columns in dataset:", df.columns) # Debugging check
49
 
@@ -106,6 +106,7 @@ def evaluate_models(dataset_path):
106
  DATASET_PATH = "https://huggingface.co/spaces/DrSyedFaizan/mindBERTevaluation/blob/main/rmhd.csv"
107
  df_results = evaluate_models(DATASET_PATH)
108
 
 
109
  # Initialize leaderboard with custom columns
110
  def init_leaderboard(dataframe):
111
  if dataframe is None or dataframe.empty:
 
43
 
44
  # Load and preprocess Reddit Mental Health Dataset
45
  def load_reddit_data(file_path, sample_size=100):
46
+ df = pd.read_csv(file_path, sep=",", encoding="utf-8", quotechar='"', on_bad_lines="skip", engine="python")
47
  df.columns = df.columns.str.strip() # Remove extra spaces from column names
48
  print("Columns in dataset:", df.columns) # Debugging check
49
 
 
106
  DATASET_PATH = "https://huggingface.co/spaces/DrSyedFaizan/mindBERTevaluation/blob/main/rmhd.csv"
107
  df_results = evaluate_models(DATASET_PATH)
108
 
109
+
110
  # Initialize leaderboard with custom columns
111
  def init_leaderboard(dataframe):
112
  if dataframe is None or dataframe.empty: