lint commited on
Commit
d1ad5fc
·
1 Parent(s): 77a91f2

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. demo.yaml +4 -6
demo.yaml CHANGED
@@ -3,10 +3,8 @@ lite_metadata:
3
  class_string: gradio.interface.Interface
4
  kwargs:
5
  title: gitio test
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
@@ -38,5 +36,5 @@ 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"
 
3
  class_string: gradio.interface.Interface
4
  kwargs:
5
  title: gitio test
6
+ description: Given a pandas dataframe, merge duplicate row indexes by summing the
7
+ values
 
 
8
  article: null
9
  thumbnail: null
10
  theme: gradio/seafoam
 
36
  ldict:
37
  class_string: gradify.exec_to_dict
38
  kwargs:
39
+ source: "import pandas as pd\n\n\ndef merge_duplicates(df):\n return\
40
+ \ df.groupby(df.index).sum()"