Upload folder using huggingface_hub
Browse files
demo.yaml
CHANGED
@@ -1,36 +1,32 @@
|
|
1 |
lite_metadata:
|
2 |
-
gradio_version: 3.
|
3 |
liteobj_version: 0.0.7
|
4 |
class_string: gradio.interface.Interface
|
5 |
kwargs:
|
6 |
title: Gradio Webapp
|
7 |
-
description:
|
8 |
article: null
|
9 |
thumbnail: null
|
10 |
theme: gradio/seafoam
|
11 |
css: null
|
12 |
allow_flagging: never
|
13 |
inputs:
|
14 |
-
- class_string: gradio.components.
|
15 |
kwargs:
|
16 |
-
label:
|
17 |
-
|
18 |
-
- class_string: gradio.components.Number
|
19 |
-
kwargs:
|
20 |
-
label: b
|
21 |
-
precision: 0
|
22 |
outputs:
|
23 |
-
- class_string: gradio.components.
|
24 |
kwargs:
|
25 |
label: output
|
26 |
-
|
27 |
fn:
|
28 |
class_string: gradify.closure
|
29 |
kwargs:
|
30 |
argmaps:
|
31 |
-
- label:
|
32 |
-
postprocessing:
|
33 |
-
- label: b
|
34 |
-
postprocessing: null
|
35 |
func_kwargs: {}
|
36 |
-
source: "def
|
|
|
|
|
|
1 |
lite_metadata:
|
2 |
+
gradio_version: 3.36.1
|
3 |
liteobj_version: 0.0.7
|
4 |
class_string: gradio.interface.Interface
|
5 |
kwargs:
|
6 |
title: Gradio Webapp
|
7 |
+
description: ''
|
8 |
article: null
|
9 |
thumbnail: null
|
10 |
theme: gradio/seafoam
|
11 |
css: null
|
12 |
allow_flagging: never
|
13 |
inputs:
|
14 |
+
- class_string: gradio.components.dataframe.Dataframe
|
15 |
kwargs:
|
16 |
+
label: nums
|
17 |
+
type: array
|
|
|
|
|
|
|
|
|
18 |
outputs:
|
19 |
+
- class_string: gradio.components.dataframe.Dataframe
|
20 |
kwargs:
|
21 |
label: output
|
22 |
+
type: array
|
23 |
fn:
|
24 |
class_string: gradify.closure
|
25 |
kwargs:
|
26 |
argmaps:
|
27 |
+
- label: nums
|
28 |
+
postprocessing: 'lambda array: list(map(int, array[0]))'
|
|
|
|
|
29 |
func_kwargs: {}
|
30 |
+
source: "def find_duplicates(nums):\n seen = set()\n duplicates = []\n\
|
31 |
+
\ for num in nums:\n if num in seen:\n duplicates.append(num)\n\
|
32 |
+
\ else:\n seen.add(num)\n return duplicates"
|