Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def generate_vis(df, mode='Document'):
|
|
25 |
for row in df.itertuples(index=False):
|
26 |
if mode == 'Query':
|
27 |
tok_scores = row.query_toks
|
28 |
-
orig_tokens = factory_max.tokenizer.tokenize(row.
|
29 |
max_score = max(tok_scores.values())
|
30 |
id = row.qid
|
31 |
else:
|
|
|
25 |
for row in df.itertuples(index=False):
|
26 |
if mode == 'Query':
|
27 |
tok_scores = row.query_toks
|
28 |
+
orig_tokens = factory_max.tokenizer.tokenize(row.query)
|
29 |
max_score = max(tok_scores.values())
|
30 |
id = row.qid
|
31 |
else:
|