AresEkb commited on
Commit
8470729
1 Parent(s): d1c79e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -42,13 +42,13 @@ def get_embeddings(input):
42
 
43
  # Load data
44
  ds_name = 'AresEkb/prof_standards_sbert_large_mt_nlu_ru'
45
- domains_ds = load_dataset(ds_name, 'domains').add_faiss_index(column='embeddings')
46
- generalized_functions_ds = load_dataset(ds_name, 'generalized_functions').add_faiss_index(column='embeddings')
47
- jobs_ds = load_dataset(ds_name, 'jobs').add_faiss_index(column='embeddings')
48
- particular_functions_ds = load_dataset(ds_name, 'particular_functions').add_faiss_index(column='embeddings')
49
- actions_ds = load_dataset(ds_name, 'actions').add_faiss_index(column='embeddings')
50
- skills_ds = load_dataset(ds_name, 'skills').add_faiss_index(column='embeddings')
51
- knowledges_ds = load_dataset(ds_name, 'knowledges').add_faiss_index(column='embeddings')
52
 
53
  indices = {'reg_number', 'generalized_function_id', 'particular_function_id'}
54
 
 
42
 
43
  # Load data
44
  ds_name = 'AresEkb/prof_standards_sbert_large_mt_nlu_ru'
45
+ domains_ds = load_dataset(ds_name, 'domains', split='train').add_faiss_index(column='embeddings')
46
+ generalized_functions_ds = load_dataset(ds_name, 'generalized_functions', split='train').add_faiss_index(column='embeddings')
47
+ jobs_ds = load_dataset(ds_name, 'jobs', split='train').add_faiss_index(column='embeddings')
48
+ particular_functions_ds = load_dataset(ds_name, 'particular_functions', split='train').add_faiss_index(column='embeddings')
49
+ actions_ds = load_dataset(ds_name, 'actions', split='train').add_faiss_index(column='embeddings')
50
+ skills_ds = load_dataset(ds_name, 'skills', split='train').add_faiss_index(column='embeddings')
51
+ knowledges_ds = load_dataset(ds_name, 'knowledges', split='train').add_faiss_index(column='embeddings')
52
 
53
  indices = {'reg_number', 'generalized_function_id', 'particular_function_id'}
54