Upload folder using huggingface_hub
Browse files- __pycache__/gradify.cpython-310.pyc +0 -0
- demo.yaml +9 -13
__pycache__/gradify.cpython-310.pyc
CHANGED
Binary files a/__pycache__/gradify.cpython-310.pyc and b/__pycache__/gradify.cpython-310.pyc differ
|
|
demo.yaml
CHANGED
@@ -2,11 +2,9 @@ lite_metadata:
|
|
2 |
gradio_version: 3.32.0
|
3 |
class_string: gradio.interface.Interface
|
4 |
kwargs:
|
5 |
-
title:
|
6 |
-
description:
|
7 |
-
|
8 |
-
|
9 |
-
'
|
10 |
article: null
|
11 |
thumbnail: null
|
12 |
theme: gradio/seafoam
|
@@ -15,28 +13,26 @@ kwargs:
|
|
15 |
inputs:
|
16 |
class_string: liteobj.listify
|
17 |
args:
|
18 |
-
- class_string: gradio.components.
|
19 |
kwargs:
|
20 |
-
label:
|
21 |
-
type: pandas
|
22 |
outputs:
|
23 |
class_string: liteobj.listify
|
24 |
args:
|
25 |
-
- class_string: gradio.components.
|
26 |
kwargs:
|
27 |
label: output
|
28 |
-
|
29 |
fn:
|
30 |
class_string: gradify.gradify_closure
|
31 |
kwargs:
|
32 |
argmaps:
|
33 |
class_string: liteobj.listify
|
34 |
args:
|
35 |
-
- label:
|
36 |
postprocessing: null
|
37 |
func_kwargs: {}
|
38 |
ldict:
|
39 |
class_string: gradify.exec_to_dict
|
40 |
kwargs:
|
41 |
-
source: "
|
42 |
-
\ = df.iloc[0].apply(lambda x: x + 'hello world')\n return df\n"
|
|
|
2 |
gradio_version: 3.32.0
|
3 |
class_string: gradio.interface.Interface
|
4 |
kwargs:
|
5 |
+
title: Gradio Webapp
|
6 |
+
description: create a function that counts the number of words in a text without
|
7 |
+
using any packages
|
|
|
|
|
8 |
article: null
|
9 |
thumbnail: null
|
10 |
theme: gradio/seafoam
|
|
|
13 |
inputs:
|
14 |
class_string: liteobj.listify
|
15 |
args:
|
16 |
+
- class_string: gradio.components.Textbox
|
17 |
kwargs:
|
18 |
+
label: text
|
|
|
19 |
outputs:
|
20 |
class_string: liteobj.listify
|
21 |
args:
|
22 |
+
- class_string: gradio.components.Number
|
23 |
kwargs:
|
24 |
label: output
|
25 |
+
precision: 0
|
26 |
fn:
|
27 |
class_string: gradify.gradify_closure
|
28 |
kwargs:
|
29 |
argmaps:
|
30 |
class_string: liteobj.listify
|
31 |
args:
|
32 |
+
- label: text
|
33 |
postprocessing: null
|
34 |
func_kwargs: {}
|
35 |
ldict:
|
36 |
class_string: gradify.exec_to_dict
|
37 |
kwargs:
|
38 |
+
source: "def count_words(text):\n words = text.split()\n return len(words)\n"
|
|