Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def preprocess_text(text):
|
|
35 |
return ' '.join(tokens)
|
36 |
|
37 |
# Combine relevant text columns for processing
|
38 |
-
question_columns = [f'Q{i}
|
39 |
data['processed_text'] = data[['CV/Resume'] + question_columns].agg(', '.join, axis=1).apply(preprocess_text)
|
40 |
data_open['processed_text_open'] = data_open[['CV/Resume', 'Question']].agg(' '.join, axis=1).apply(processed_text_open)
|
41 |
|
|
|
35 |
return ' '.join(tokens)
|
36 |
|
37 |
# Combine relevant text columns for processing
|
38 |
+
question_columns = [f'Q{i}' for i in range(1, 37)] # Adjust the range based on your data columns
|
39 |
data['processed_text'] = data[['CV/Resume'] + question_columns].agg(', '.join, axis=1).apply(preprocess_text)
|
40 |
data_open['processed_text_open'] = data_open[['CV/Resume', 'Question']].agg(' '.join, axis=1).apply(processed_text_open)
|
41 |
|