lint commited on
Commit
39529ec
·
1 Parent(s): d74feee

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. demo.yaml +15 -21
  2. requirements.txt +1 -1
demo.yaml CHANGED
@@ -1,41 +1,35 @@
1
  lite_metadata:
2
  gradio_version: 3.32.0
 
3
  class_string: gradio.interface.Interface
4
  kwargs:
5
  title: gitio app
6
- description: Given a pandas dataframe, convert values to integers and multiply them
7
- by their row index
8
  article: null
9
  thumbnail: null
10
  theme: gradio/seafoam
11
  css: null
12
  allow_flagging: never
13
  inputs:
14
- class_string: liteobj.listify
15
- args:
16
- - class_string: gradio.components.Dataframe
17
- kwargs:
18
- label: df
19
- type: pandas
20
  outputs:
21
- class_string: liteobj.listify
22
- args:
23
- - class_string: gradio.components.Dataframe
24
- kwargs:
25
- label: output
26
- type: pandas
27
  fn:
28
  class_string: gradify.gradify_closure
29
  kwargs:
30
  argmaps:
31
- class_string: liteobj.listify
32
- args:
33
- - label: df
34
- postprocessing: null
35
  func_kwargs: {}
36
  ldict:
37
  class_string: gradify.exec_to_dict
38
  kwargs:
39
- source: "import pandas as pd\n\n\ndef convert_and_multiply(df):\n return\
40
- \ df.apply(lambda x: pd.to_numeric(x, errors='coerce').fillna(0).\n \
41
- \ astype(int) * x.index, axis=1)"
 
1
  lite_metadata:
2
  gradio_version: 3.32.0
3
+ liteobj_version: 0.0.7
4
  class_string: gradio.interface.Interface
5
  kwargs:
6
  title: gitio app
7
+ description: ''
 
8
  article: null
9
  thumbnail: null
10
  theme: gradio/seafoam
11
  css: null
12
  allow_flagging: never
13
  inputs:
14
+ - class_string: gradio.components.Dataframe
15
+ kwargs:
16
+ label: nums
17
+ type: array
 
 
18
  outputs:
19
+ - class_string: gradio.components.Dataframe
20
+ kwargs:
21
+ label: output
22
+ type: array
 
 
23
  fn:
24
  class_string: gradify.gradify_closure
25
  kwargs:
26
  argmaps:
27
+ - label: nums
28
+ postprocessing: 'lambda array: list(map(int, array[0]))'
 
 
29
  func_kwargs: {}
30
  ldict:
31
  class_string: gradify.exec_to_dict
32
  kwargs:
33
+ source: "def find_duplicates(nums):\n seen = set()\n duplicates =\
34
+ \ set()\n for num in nums:\n if num in seen:\n duplicates.add(num)\n\
35
+ \ else:\n seen.add(num)\n return list(duplicates)\n"
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
  gradio==3.32
2
- liteobj==0.0.4
 
1
  gradio==3.32
2
+ liteobj==0.0.7