linbojunzi commited on
Commit
099bd63
1 Parent(s): 0803c45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def display_dict(data):
32
  all_context = data["all_context"]
33
  highlighted_context = ""
34
  for idx, sentence in enumerate(all_context):
35
- if idx == data["perturb_sentence_id"]:
36
  highlighted_context += f"<span style='color:red;'>{sentence}</span> "
37
  elif idx in data["target_context_ids"]:
38
  highlighted_context += f"**{sentence}** "
 
32
  all_context = data["all_context"]
33
  highlighted_context = ""
34
  for idx, sentence in enumerate(all_context):
35
+ if idx in data["perturb_sentence_id"]:
36
  highlighted_context += f"<span style='color:red;'>{sentence}</span> "
37
  elif idx in data["target_context_ids"]:
38
  highlighted_context += f"**{sentence}** "