Spaces:
Sleeping
Sleeping
wcy
commited on
Update app.py
Browse files
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
|
| 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}** "
|