lint commited on
Commit
2c04c89
·
1 Parent(s): 2ea8fe3

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. demo.yaml +12 -16
demo.yaml CHANGED
@@ -1,36 +1,32 @@
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: Gradio Webapp
7
- description: add two numbers
8
  article: null
9
  thumbnail: null
10
  theme: gradio/seafoam
11
  css: null
12
  allow_flagging: never
13
  inputs:
14
- - class_string: gradio.components.Number
15
  kwargs:
16
- label: a
17
- precision: 0
18
- - class_string: gradio.components.Number
19
- kwargs:
20
- label: b
21
- precision: 0
22
  outputs:
23
- - class_string: gradio.components.Number
24
  kwargs:
25
  label: output
26
- precision: 0
27
  fn:
28
  class_string: gradify.closure
29
  kwargs:
30
  argmaps:
31
- - label: a
32
- postprocessing: null
33
- - label: b
34
- postprocessing: null
35
  func_kwargs: {}
36
- source: "def add_numbers(a, b):\n return a + b"
 
 
 
1
  lite_metadata:
2
+ gradio_version: 3.36.1
3
  liteobj_version: 0.0.7
4
  class_string: gradio.interface.Interface
5
  kwargs:
6
  title: Gradio Webapp
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.Dataframe
15
  kwargs:
16
+ label: nums
17
+ type: array
 
 
 
 
18
  outputs:
19
+ - class_string: gradio.components.dataframe.Dataframe
20
  kwargs:
21
  label: output
22
+ type: array
23
  fn:
24
  class_string: gradify.closure
25
  kwargs:
26
  argmaps:
27
+ - label: nums
28
+ postprocessing: 'lambda array: list(map(int, array[0]))'
 
 
29
  func_kwargs: {}
30
+ source: "def find_duplicates(nums):\n seen = set()\n duplicates = []\n\
31
+ \ for num in nums:\n if num in seen:\n duplicates.append(num)\n\
32
+ \ else:\n seen.add(num)\n return duplicates"