Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,9 @@ def modify_caption(caption: str) -> str:
|
|
19 |
special_patterns = [
|
20 |
(r'the image is , ''),
|
21 |
(r'the image captures ', ''),
|
22 |
-
(r'the image showcases ', '')
|
23 |
-
(r'the image shows ', '')
|
24 |
-
(r'the image ', '')
|
25 |
]
|
26 |
|
27 |
for pattern, replacement in special_patterns:
|
|
|
19 |
special_patterns = [
|
20 |
(r'the image is , ''),
|
21 |
(r'the image captures ', ''),
|
22 |
+
(r'the image showcases ', ''),
|
23 |
+
(r'the image shows ', ''),
|
24 |
+
(r'the image ', ''),
|
25 |
]
|
26 |
|
27 |
for pattern, replacement in special_patterns:
|