Chris4K commited on
Commit
f9d798a
1 Parent(s): ea0ce95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -430,13 +430,16 @@ def compare_embeddings(file, query, embedding_models, custom_embedding_model, sp
430
  "search_type": search_type,
431
  "top_k": top_k,
432
  "lang": lang,
 
433
  "optimize_vocab": optimize_vocab,
 
434
  "phonetic_weight": phonetic_weight,
435
  "use_query_optimization": use_query_optimization,
436
  "use_reranking": use_reranking
437
  }
438
 
439
- models = [model.strip().split(':') for model in embedding_models.split(',')]
 
440
  if custom_embedding_model:
441
  models.append(custom_embedding_model.strip().split(':'))
442
 
 
430
  "search_type": search_type,
431
  "top_k": top_k,
432
  "lang": lang,
433
+ "apply_preprocessing": apply_preprocessing,
434
  "optimize_vocab": optimize_vocab,
435
+ "apply_phonetic": apply_phonetic,
436
  "phonetic_weight": phonetic_weight,
437
  "use_query_optimization": use_query_optimization,
438
  "use_reranking": use_reranking
439
  }
440
 
441
+ # Parse the embedding models from the checkbox group
442
+ models = [model.split(':') for model in embedding_models]
443
  if custom_embedding_model:
444
  models.append(custom_embedding_model.strip().split(':'))
445