Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -612,7 +612,6 @@ class EnhancedDipperHumanizer:
|
|
| 612 |
print(f"Found exact placeholder {placeholder}, replacing with {keyword}")
|
| 613 |
restored_text = restored_text.replace(placeholder, keyword)
|
| 614 |
# Mark positions as replaced
|
| 615 |
-
import re
|
| 616 |
for match in re.finditer(re.escape(keyword), restored_text):
|
| 617 |
replaced_positions.update(range(match.start(), match.end()))
|
| 618 |
|
|
|
|
| 612 |
print(f"Found exact placeholder {placeholder}, replacing with {keyword}")
|
| 613 |
restored_text = restored_text.replace(placeholder, keyword)
|
| 614 |
# Mark positions as replaced
|
|
|
|
| 615 |
for match in re.finditer(re.escape(keyword), restored_text):
|
| 616 |
replaced_positions.update(range(match.start(), match.end()))
|
| 617 |
|