Upload folder using huggingface_hub
Browse files- demo.yaml +15 -21
- requirements.txt +1 -1
demo.yaml
CHANGED
@@ -1,41 +1,35 @@
|
|
1 |
lite_metadata:
|
2 |
gradio_version: 3.32.0
|
|
|
3 |
class_string: gradio.interface.Interface
|
4 |
kwargs:
|
5 |
title: gitio app
|
6 |
-
description:
|
7 |
-
by their row index
|
8 |
article: null
|
9 |
thumbnail: null
|
10 |
theme: gradio/seafoam
|
11 |
css: null
|
12 |
allow_flagging: never
|
13 |
inputs:
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
label: df
|
19 |
-
type: pandas
|
20 |
outputs:
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
label: output
|
26 |
-
type: pandas
|
27 |
fn:
|
28 |
class_string: gradify.gradify_closure
|
29 |
kwargs:
|
30 |
argmaps:
|
31 |
-
|
32 |
-
|
33 |
-
- label: df
|
34 |
-
postprocessing: null
|
35 |
func_kwargs: {}
|
36 |
ldict:
|
37 |
class_string: gradify.exec_to_dict
|
38 |
kwargs:
|
39 |
-
source: "
|
40 |
-
\
|
41 |
-
\
|
|
|
1 |
lite_metadata:
|
2 |
gradio_version: 3.32.0
|
3 |
+
liteobj_version: 0.0.7
|
4 |
class_string: gradio.interface.Interface
|
5 |
kwargs:
|
6 |
title: gitio app
|
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
|
15 |
+
kwargs:
|
16 |
+
label: nums
|
17 |
+
type: array
|
|
|
|
|
18 |
outputs:
|
19 |
+
- class_string: gradio.components.Dataframe
|
20 |
+
kwargs:
|
21 |
+
label: output
|
22 |
+
type: array
|
|
|
|
|
23 |
fn:
|
24 |
class_string: gradify.gradify_closure
|
25 |
kwargs:
|
26 |
argmaps:
|
27 |
+
- label: nums
|
28 |
+
postprocessing: 'lambda array: list(map(int, array[0]))'
|
|
|
|
|
29 |
func_kwargs: {}
|
30 |
ldict:
|
31 |
class_string: gradify.exec_to_dict
|
32 |
kwargs:
|
33 |
+
source: "def find_duplicates(nums):\n seen = set()\n duplicates =\
|
34 |
+
\ set()\n for num in nums:\n if num in seen:\n duplicates.add(num)\n\
|
35 |
+
\ else:\n seen.add(num)\n return list(duplicates)\n"
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
gradio==3.32
|
2 |
-
liteobj==0.0.
|
|
|
1 |
gradio==3.32
|
2 |
+
liteobj==0.0.7
|