Upload folder using huggingface_hub
Browse files
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,
|
|
|
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
|
39 |
-
\ df.
|
|
|
|
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)"
|