my-app / demo.yaml
lint's picture
Upload folder using huggingface_hub
b736401
raw
history blame
1.07 kB
lite_metadata:
gradio_version: 3.31.0
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp made with Gitio
description: Given a string s, find the length of the longest substring without
repeating characters.
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: s
outputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Number
kwargs:
label: output
precision: 0
fn:
class_string: liteobj.compile_callable
kwargs:
source: "def func(s):\n start = maxLength = 0\n usedChar = {}\n for\
\ i in range(len(s)):\n if s[i] in usedChar and start <= usedChar[s[i]]:\n\
\ start = usedChar[s[i]] + 1\n else:\n maxLength\
\ = max(maxLength, i - start + 1)\n usedChar[s[i]] = i\n return\
\ maxLength\n"
target_name: func