gitio-app / demo.yaml
lint's picture
Upload folder using huggingface_hub
c7b3e86
raw
history blame
902 Bytes
lite_metadata:
gradio_version: 3.32.0
liteobj_version: 0.0.7
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp
description: ''
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
- class_string: gradio.components.Dataframe
kwargs:
label: nums
type: array
outputs:
- class_string: gradio.components.Dataframe
kwargs:
label: output
type: array
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
- label: nums
postprocessing: 'lambda array: list(map(int, array[0]))'
func_kwargs: {}
source: "def find_duplicates(nums):\n seen = set()\n duplicates = set()\n\
\ for num in nums:\n if num in seen:\n duplicates.add(num)\n\
\ else:\n seen.add(num)\n return list(duplicates)\n"