lint commited on
Commit
52c0e22
·
1 Parent(s): 8e38974

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. demo.yaml +4 -11
demo.yaml CHANGED
@@ -4,7 +4,7 @@ lite_metadata:
4
  class_string: gradio.interface.Interface
5
  kwargs:
6
  title: Gradio Webapp
7
- description: Given 2 arry find out the longer one
8
  article: null
9
  thumbnail: null
10
  theme: gradio/seafoam
@@ -13,11 +13,7 @@ kwargs:
13
  inputs:
14
  - class_string: gradio.components.Dataframe
15
  kwargs:
16
- label: arr1
17
- type: array
18
- - class_string: gradio.components.Dataframe
19
- kwargs:
20
- label: arr2
21
  type: array
22
  outputs:
23
  - class_string: gradio.components.Dataframe
@@ -28,10 +24,7 @@ kwargs:
28
  class_string: gradify.gradify_closure
29
  kwargs:
30
  argmaps:
31
- - label: arr1
32
- postprocessing: 'lambda array: list(map(int, array[0]))'
33
- - label: arr2
34
  postprocessing: 'lambda array: list(map(int, array[0]))'
35
  func_kwargs: {}
36
- source: "def longer_array(arr1, arr2):\n return arr1 if len(arr1) > len(arr2)\
37
- \ else arr2\n"
 
4
  class_string: gradio.interface.Interface
5
  kwargs:
6
  title: Gradio Webapp
7
+ description: Given a set of numbers, save them as an arry
8
  article: null
9
  thumbnail: null
10
  theme: gradio/seafoam
 
13
  inputs:
14
  - class_string: gradio.components.Dataframe
15
  kwargs:
16
+ label: numbers
 
 
 
 
17
  type: array
18
  outputs:
19
  - class_string: gradio.components.Dataframe
 
24
  class_string: gradify.gradify_closure
25
  kwargs:
26
  argmaps:
27
+ - label: numbers
 
 
28
  postprocessing: 'lambda array: list(map(int, array[0]))'
29
  func_kwargs: {}
30
+ source: "def save_numbers(numbers):\n return numbers\n"