File size: 1,142 Bytes
b736401
6bc5f93
b736401
 
6bc5f93
d3e70b5
b736401
 
 
 
6bc5f93
b736401
 
 
6bc5f93
b736401
d3e70b5
6bc5f93
b736401
 
 
d3e70b5
b736401
 
d3e70b5
b736401
6bc5f93
b736401
6bc5f93
 
 
d3e70b5
 
6bc5f93
 
 
 
d3e70b5
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
lite_metadata:
  gradio_version: 3.32.0
class_string: gradio.interface.Interface
kwargs:
  title: Gradio Webapp
  description: Given list of strings, create regex to extract dates
  article: null
  thumbnail: null
  theme: gradio/seafoam
  css: null
  allow_flagging: never
  inputs:
    class_string: liteobj.listify
    args:
    - class_string: gradio.components.Dataframe
      kwargs:
        label: strings
        type: array
  outputs:
    class_string: liteobj.listify
    args:
    - class_string: gradio.components.Dataframe
      kwargs:
        label: output
        type: array
  fn:
    class_string: gradify.gradify_closure
    kwargs:
      argmaps:
        class_string: liteobj.listify
        args:
        - label: strings
          postprocessing: 'lambda array: list(map(str, array[0]))'
      func_kwargs: {}
      ldict:
        class_string: gradify.exec_to_dict
        kwargs:
          source: "import re\n\n\ndef func(strings):\n    regex = '\\\\d{1,2}/\\\\\
            d{1,2}/\\\\d{4}'\n    dates = []\n    for string in strings:\n       \
            \ dates += re.findall(regex, string)\n    return dates\n"