gitio-app / demo.yaml
lint's picture
Upload folder using huggingface_hub
d74feee
raw
history blame
1.12 kB
lite_metadata:
gradio_version: 3.32.0
class_string: gradio.interface.Interface
kwargs:
title: gitio app
description: Given a pandas dataframe, convert values to integers and multiply them
by their row index
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Dataframe
kwargs:
label: df
type: pandas
outputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Dataframe
kwargs:
label: output
type: pandas
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
class_string: liteobj.listify
args:
- label: df
postprocessing: null
func_kwargs: {}
ldict:
class_string: gradify.exec_to_dict
kwargs:
source: "import pandas as pd\n\n\ndef convert_and_multiply(df):\n return\
\ df.apply(lambda x: pd.to_numeric(x, errors='coerce').fillna(0).\n \
\ astype(int) * x.index, axis=1)"