gitio-app / demo.yaml
lint's picture
Upload folder using huggingface_hub
105e1e0
raw
history blame
893 Bytes
lite_metadata:
gradio_version: 3.32.0
liteobj_version: 0.0.7
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp
description: Generate a prompt field
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
- class_string: gradio.components.Textbox
kwargs:
label: prompt
- class_string: gradio.components.Dataframe
kwargs:
label: options
type: array
outputs:
- class_string: gradio.components.Textbox
kwargs:
label: output
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
- label: prompt
postprocessing: null
- label: options
postprocessing: 'lambda array: list(map(str, array[0]))'
func_kwargs: {}
source: "def generate_prompt(prompt, options):\n return f\"{prompt} ({'/'.join(options)}):\
\ \"\n"