gitio-count-hello / demo.yaml
lint's picture
Upload folder using huggingface_hub
bafcfe0
raw
history blame
971 Bytes
lite_metadata:
gradio_version: 3.32.0
liteobj_version: 0.0.7
class_string: gradio.interface.Interface
kwargs:
title: gitio count hello
description: given a pandas dataframe, count the number of entries that contain
the substring 'hello world'
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
- class_string: gradio.components.Dataframe
kwargs:
label: df
type: pandas
outputs:
- class_string: gradio.components.Number
kwargs:
label: output
precision: 0
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
- label: df
postprocessing: null
func_kwargs: {}
ldict:
class_string: gradify.exec_to_dict
kwargs:
source: "import pandas as pd\n\n\ndef count_hello_world(df):\n return\
\ df.astype(str).apply(lambda x: x.str.contains('hello world')).sum(\n\
\ ).sum()"