lint commited on
Commit
d74feee
·
1 Parent(s): b0303f7

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. demo.yaml +5 -3
demo.yaml CHANGED
@@ -3,7 +3,8 @@ lite_metadata:
3
  class_string: gradio.interface.Interface
4
  kwargs:
5
  title: gitio app
6
- description: Given a pandas dataframe, multiple all values by their row number
 
7
  article: null
8
  thumbnail: null
9
  theme: gradio/seafoam
@@ -35,5 +36,6 @@ kwargs:
35
  ldict:
36
  class_string: gradify.exec_to_dict
37
  kwargs:
38
- source: "import pandas as pd\n\n\ndef multiply_by_row_number(df):\n return\
39
- \ df.mul(df.index + 1, axis=0)"
 
 
3
  class_string: gradio.interface.Interface
4
  kwargs:
5
  title: gitio app
6
+ description: Given a pandas dataframe, convert values to integers and multiply them
7
+ by their row index
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 convert_and_multiply(df):\n return\
40
+ \ df.apply(lambda x: pd.to_numeric(x, errors='coerce').fillna(0).\n \
41
+ \ astype(int) * x.index, axis=1)"