gitio-count-hello / demo.yaml
lint's picture
Upload folder using huggingface_hub
733cfcf
lite_metadata:
gradio_version: 3.32.0
liteobj_version: 0.0.7
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp
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: {}
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()\n"