Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = ["
|
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["
|
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
|