lint commited on
Commit
9844aff
·
1 Parent(s): 386c3cc

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. __pycache__/gradify.cpython-310.pyc +0 -0
  2. demo.yaml +9 -13
__pycache__/gradify.cpython-310.pyc CHANGED
Binary files a/__pycache__/gradify.cpython-310.pyc and b/__pycache__/gradify.cpython-310.pyc differ
 
demo.yaml CHANGED
@@ -2,11 +2,9 @@ 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 of strings, append “hello world” to all values
7
- in the first row.
8
-
9
- '
10
  article: null
11
  thumbnail: null
12
  theme: gradio/seafoam
@@ -15,28 +13,26 @@ kwargs:
15
  inputs:
16
  class_string: liteobj.listify
17
  args:
18
- - class_string: gradio.components.Dataframe
19
  kwargs:
20
- label: df
21
- type: pandas
22
  outputs:
23
  class_string: liteobj.listify
24
  args:
25
- - class_string: gradio.components.Dataframe
26
  kwargs:
27
  label: output
28
- type: pandas
29
  fn:
30
  class_string: gradify.gradify_closure
31
  kwargs:
32
  argmaps:
33
  class_string: liteobj.listify
34
  args:
35
- - label: df
36
  postprocessing: null
37
  func_kwargs: {}
38
  ldict:
39
  class_string: gradify.exec_to_dict
40
  kwargs:
41
- source: "import pandas as pd\n\n\ndef append_hello_world(df):\n df.iloc[0]\
42
- \ = df.iloc[0].apply(lambda x: x + 'hello world')\n return df\n"
 
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
  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:
22
+ - class_string: gradio.components.Number
23
  kwargs:
24
  label: output
25
+ precision: 0
26
  fn:
27
  class_string: gradify.gradify_closure
28
  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"