Upload folder using huggingface_hub
Browse files- __pycache__/gradify.cpython-310.pyc +0 -0
- demo.yaml +14 -14
__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
@@ -3,7 +3,7 @@ lite_metadata:
|
|
3 |
class_string: gradio.interface.Interface
|
4 |
kwargs:
|
5 |
title: Gradio Webapp
|
6 |
-
description:
|
7 |
article: null
|
8 |
thumbnail: null
|
9 |
theme: gradio/seafoam
|
@@ -12,33 +12,33 @@ kwargs:
|
|
12 |
inputs:
|
13 |
class_string: liteobj.listify
|
14 |
args:
|
15 |
-
- class_string: gradio.components.
|
16 |
kwargs:
|
17 |
-
label:
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
outputs:
|
20 |
class_string: liteobj.listify
|
21 |
args:
|
22 |
-
- class_string: gradio.components.
|
23 |
kwargs:
|
24 |
label: output
|
25 |
-
|
26 |
fn:
|
27 |
class_string: gradify.gradify_closure
|
28 |
kwargs:
|
29 |
argmaps:
|
30 |
class_string: liteobj.listify
|
31 |
args:
|
32 |
-
- label:
|
|
|
|
|
33 |
postprocessing: null
|
34 |
func_kwargs: {}
|
35 |
ldict:
|
36 |
class_string: gradify.exec_to_dict
|
37 |
kwargs:
|
38 |
-
source: "
|
39 |
-
\ width, height = image.size\n for x in range(width):\n for\
|
40 |
-
\ y in range(height):\n r, g, b = image.getpixel((x, y))\n\
|
41 |
-
\ new_r = int(r * 0.393 + g * 0.769 + b * 0.189)\n \
|
42 |
-
\ new_g = int(r * 0.349 + g * 0.686 + b * 0.168)\n new_b\
|
43 |
-
\ = int(r * 0.272 + g * 0.534 + b * 0.131)\n image.putpixel((x,\
|
44 |
-
\ y), (new_r, new_g, new_b))\n return image\n"
|
|
|
3 |
class_string: gradio.interface.Interface
|
4 |
kwargs:
|
5 |
title: Gradio Webapp
|
6 |
+
description: given two numbers, return the sum
|
7 |
article: null
|
8 |
thumbnail: null
|
9 |
theme: gradio/seafoam
|
|
|
12 |
inputs:
|
13 |
class_string: liteobj.listify
|
14 |
args:
|
15 |
+
- class_string: gradio.components.Number
|
16 |
kwargs:
|
17 |
+
label: num1
|
18 |
+
precision: 0
|
19 |
+
- class_string: gradio.components.Number
|
20 |
+
kwargs:
|
21 |
+
label: num2
|
22 |
+
precision: 0
|
23 |
outputs:
|
24 |
class_string: liteobj.listify
|
25 |
args:
|
26 |
+
- class_string: gradio.components.Number
|
27 |
kwargs:
|
28 |
label: output
|
29 |
+
precision: 0
|
30 |
fn:
|
31 |
class_string: gradify.gradify_closure
|
32 |
kwargs:
|
33 |
argmaps:
|
34 |
class_string: liteobj.listify
|
35 |
args:
|
36 |
+
- label: num1
|
37 |
+
postprocessing: null
|
38 |
+
- label: num2
|
39 |
postprocessing: null
|
40 |
func_kwargs: {}
|
41 |
ldict:
|
42 |
class_string: gradify.exec_to_dict
|
43 |
kwargs:
|
44 |
+
source: "def sum_numbers(num1, num2):\n return num1 + num2\n"
|
|
|
|
|
|
|
|
|
|
|
|