lint commited on
Commit
39c9508
·
1 Parent(s): 9844aff

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. demo.yaml +13 -7
demo.yaml CHANGED
@@ -2,9 +2,8 @@ lite_metadata:
2
  gradio_version: 3.32.0
3
  class_string: gradio.interface.Interface
4
  kwargs:
5
- title: Gradio Webapp
6
- description: create a function that counts the number of words in a text without
7
- using any packages
8
  article: null
9
  thumbnail: null
10
  theme: gradio/seafoam
@@ -13,9 +12,14 @@ kwargs:
13
  inputs:
14
  class_string: liteobj.listify
15
  args:
16
- - class_string: gradio.components.Textbox
 
 
 
 
17
  kwargs:
18
- label: text
 
19
  outputs:
20
  class_string: liteobj.listify
21
  args:
@@ -29,10 +33,12 @@ kwargs:
29
  argmaps:
30
  class_string: liteobj.listify
31
  args:
32
- - label: text
 
 
33
  postprocessing: null
34
  func_kwargs: {}
35
  ldict:
36
  class_string: gradify.exec_to_dict
37
  kwargs:
38
- source: "def count_words(text):\n words = text.split()\n return len(words)\n"
 
2
  gradio_version: 3.32.0
3
  class_string: gradio.interface.Interface
4
  kwargs:
5
+ title: gitio app
6
+ description: given two numbers, return the sum
 
7
  article: null
8
  thumbnail: null
9
  theme: gradio/seafoam
 
12
  inputs:
13
  class_string: liteobj.listify
14
  args:
15
+ - class_string: gradio.components.Number
16
+ kwargs:
17
+ label: num1
18
+ precision: 0
19
+ - class_string: gradio.components.Number
20
  kwargs:
21
+ label: num2
22
+ precision: 0
23
  outputs:
24
  class_string: liteobj.listify
25
  args:
 
33
  argmaps:
34
  class_string: liteobj.listify
35
  args:
36
+ - label: num1
37
+ postprocessing: null
38
+ - label: num2
39
  postprocessing: null
40
  func_kwargs: {}
41
  ldict:
42
  class_string: gradify.exec_to_dict
43
  kwargs:
44
+ source: "def sum_numbers(num1, num2):\n return num1 + num2"