Spaces:
Sleeping
Sleeping
Update app.py
Browse files24 unmodified lines25262728293054 unmodified lines8586878889909124 unmodified linesdummy_label = 100label_list = list(pd.read_excel('label_list.xlsx')['label_list'])# Define a function to preprocess the new datadef get_feature_new(text, max_seq_length, tokenizer, dummy_label):54 unmodified lines# Decode labels using the label encoderdecoded_labels = label_encoder.inverse_transform(predicted_classes)map_data = pd.read_excel("ISCO-08 EN Structure and definitions.xlsx")# Retrieve the ISCO description based on the decoded labelisco_description = map_data[map_data['ISCO 08 Code'] == decoded_labels[0]]['Title EN'].values24 unmodified lines2526272829303154 unmodified lines8687888990919224 unmodified linesdummy_label = 100label_list = list(pd.read_excel('label_list.xlsx')['label_list'])map_data = pd.read_excel("ISCO-08 EN Structure and definitions.xlsx")# Define a function to preprocess the new datadef get_feature_new(text, max_seq_length, tokenizer, dummy_label):54 unmodified lines# Decode labels using the label encoderdecoded_labels = label_encoder.inverse_transform(predicted_classes)# Retrieve the ISCO description based on the decoded labelisco_description = map_data[map_data['ISCO 08 Code'] == decoded_labels[0]]['Title EN'].values
app.py+2-1