farah1 commited on
Commit
92c2e11
·
verified ·
1 Parent(s): fee8826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ except Exception as e:
39
  validation_data = pd.DataFrame()
40
 
41
  # Ensure the necessary columns exist in the training dataset
42
- required_columns = ["text", "Ground_Truth_Stress", "Ground_Truth_Anxiety", "Ground_Truth_Depression", "Ground_Truth_Other_binary"]
43
  if not train_data.empty:
44
  for column in required_columns:
45
  if column not in train_data.columns:
@@ -49,7 +49,7 @@ else:
49
  exit(1)
50
 
51
  # Initialize BM25
52
- tokenized_train = [doc.split() for doc in train_data["text"]]
53
  bm25 = BM25Okapi(tokenized_train)
54
 
55
  # Set OpenAI API key
 
39
  validation_data = pd.DataFrame()
40
 
41
  # Ensure the necessary columns exist in the training dataset
42
+ required_columns = ["content", "Ground_Truth_Stress", "Ground_Truth_Anxiety", "Ground_Truth_Depression", "Ground_Truth_Other_binary"]
43
  if not train_data.empty:
44
  for column in required_columns:
45
  if column not in train_data.columns:
 
49
  exit(1)
50
 
51
  # Initialize BM25
52
+ tokenized_train = [doc.split() for doc in train_data["content"]]
53
  bm25 = BM25Okapi(tokenized_train)
54
 
55
  # Set OpenAI API key