Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -151,10 +151,13 @@ if Run_Button and input_text:
|
|
| 151 |
all_outputs.extend(output)
|
| 152 |
|
| 153 |
# Combine entities
|
|
|
|
| 154 |
output_comb = entity_comb(all_outputs)
|
| 155 |
|
| 156 |
# Create mask dictionary
|
| 157 |
mask_dict = create_mask_dict(output_comb)
|
|
|
|
|
|
|
| 158 |
|
| 159 |
# Apply masking and add masked_word column
|
| 160 |
for entity in output_comb:
|
|
|
|
| 151 |
all_outputs.extend(output)
|
| 152 |
|
| 153 |
# Combine entities
|
| 154 |
+
|
| 155 |
output_comb = entity_comb(all_outputs)
|
| 156 |
|
| 157 |
# Create mask dictionary
|
| 158 |
mask_dict = create_mask_dict(output_comb)
|
| 159 |
+
|
| 160 |
+
masked_text = " ".join(entity['masked_word'] for entity in output_comb)
|
| 161 |
|
| 162 |
# Apply masking and add masked_word column
|
| 163 |
for entity in output_comb:
|