gitio-app / demo.yaml
lint's picture
Upload folder using huggingface_hub
9844aff
raw
history blame
971 Bytes
lite_metadata:
gradio_version: 3.32.0
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp
description: create a function that counts the number of words in a text without
using any packages
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Textbox
kwargs:
label: text
outputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Number
kwargs:
label: output
precision: 0
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
class_string: liteobj.listify
args:
- label: text
postprocessing: null
func_kwargs: {}
ldict:
class_string: gradify.exec_to_dict
kwargs:
source: "def count_words(text):\n words = text.split()\n return len(words)\n"