orionweller commited on
Commit
78923ad
1 Parent(s): 14955d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -292,7 +292,8 @@ if corpus is not None and queries is not None and qrels is not None:
292
  if word_suggestions_off:
293
  splitting_words = []
294
  else:
295
- splitting_words = find_dividing_words([item[1] + " " + item[2] for item in doc_texts])
 
296
 
297
 
298
  # make a selectbox of these splitting words (allow multiple)
 
292
  if word_suggestions_off:
293
  splitting_words = []
294
  else:
295
+ together_docs = [item[1] + " " + item[2] if type(item[1]) == str else item[2] for item in doc_texts]
296
+ splitting_words = find_dividing_words(together_docs)
297
 
298
 
299
  # make a selectbox of these splitting words (allow multiple)