lint's picture
Upload folder using huggingface_hub
c4bf276
raw
history blame
1.69 kB
lite_metadata:
gradio_version: 3.32.0
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp
description: Given an array of distinct integers candidates and a target integer
target, return a list of all unique combinations of candidates where the chosen
numbers sum to target
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Dataframe
kwargs:
label: candidates
type: array
- class_string: gradio.components.Number
kwargs:
label: target
precision: 0
outputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Dataframe
kwargs:
label: output
type: array
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
class_string: liteobj.listify
args:
- label: candidates
postprocessing: 'lambda array: list(map(int, array[0]))'
- label: target
postprocessing: null
func_kwargs: {}
ldict:
class_string: gradify.exec_to_dict
kwargs:
source: "def combinationSum(candidates, target):\n res = []\n\n def\
\ backtrack(start, path, target):\n if target == 0:\n \
\ res.append(path)\n return\n for i in range(start,\
\ len(candidates)):\n if candidates[i] > target:\n \
\ break\n backtrack(i, path + [candidates[i]], target\
\ - candidates[i])\n backtrack(0, [], target)\n return res\n"