Upload folder using huggingface_hub
Browse files
demo.yaml
CHANGED
|
@@ -3,7 +3,7 @@ lite_metadata:
|
|
| 3 |
class_string: gradio.interface.Interface
|
| 4 |
kwargs:
|
| 5 |
title: gitio app
|
| 6 |
-
description:
|
| 7 |
article: null
|
| 8 |
thumbnail: null
|
| 9 |
theme: gradio/seafoam
|
|
@@ -12,33 +12,28 @@ kwargs:
|
|
| 12 |
inputs:
|
| 13 |
class_string: liteobj.listify
|
| 14 |
args:
|
| 15 |
-
- class_string: gradio.components.
|
| 16 |
kwargs:
|
| 17 |
-
label:
|
| 18 |
-
|
| 19 |
-
- class_string: gradio.components.Number
|
| 20 |
-
kwargs:
|
| 21 |
-
label: num2
|
| 22 |
-
precision: 0
|
| 23 |
outputs:
|
| 24 |
class_string: liteobj.listify
|
| 25 |
args:
|
| 26 |
-
- class_string: gradio.components.
|
| 27 |
kwargs:
|
| 28 |
label: output
|
| 29 |
-
|
| 30 |
fn:
|
| 31 |
class_string: gradify.gradify_closure
|
| 32 |
kwargs:
|
| 33 |
argmaps:
|
| 34 |
class_string: liteobj.listify
|
| 35 |
args:
|
| 36 |
-
- label:
|
| 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: "
|
|
|
|
|
|
| 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
|
|
|
|
| 12 |
inputs:
|
| 13 |
class_string: liteobj.listify
|
| 14 |
args:
|
| 15 |
+
- class_string: gradio.components.Dataframe
|
| 16 |
kwargs:
|
| 17 |
+
label: df
|
| 18 |
+
type: pandas
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
outputs:
|
| 20 |
class_string: liteobj.listify
|
| 21 |
args:
|
| 22 |
+
- class_string: gradio.components.Dataframe
|
| 23 |
kwargs:
|
| 24 |
label: output
|
| 25 |
+
type: pandas
|
| 26 |
fn:
|
| 27 |
class_string: gradify.gradify_closure
|
| 28 |
kwargs:
|
| 29 |
argmaps:
|
| 30 |
class_string: liteobj.listify
|
| 31 |
args:
|
| 32 |
+
- label: df
|
|
|
|
|
|
|
| 33 |
postprocessing: null
|
| 34 |
func_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)"
|