Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
demo.yaml
CHANGED
|
@@ -27,9 +27,6 @@ kwargs:
|
|
| 27 |
- label: strings
|
| 28 |
postprocessing: 'lambda array: list(map(str, array[0]))'
|
| 29 |
func_kwargs: {}
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
source: "import re\n\n\ndef extract_dates(strings):\n regex = '\\\\d{1,2}/\\\
|
| 34 |
-
\\d{1,2}/\\\\d{4}'\n dates = []\n for string in strings:\n \
|
| 35 |
-
\ dates += re.findall(regex, string)\n return dates\n"
|
|
|
|
| 27 |
- label: strings
|
| 28 |
postprocessing: 'lambda array: list(map(str, array[0]))'
|
| 29 |
func_kwargs: {}
|
| 30 |
+
source: "import re\n\n\ndef extract_dates(strings):\n regex = '\\\\d{1,2}/\\\
|
| 31 |
+
\\d{1,2}/\\\\d{4}'\n dates = []\n for string in strings:\n dates\
|
| 32 |
+
\ += re.findall(regex, string)\n return dates"
|
|
|
|
|
|
|
|
|