Upload folder using huggingface_hub
Browse files
demo.yaml
CHANGED
@@ -4,7 +4,7 @@ lite_metadata:
|
|
4 |
class_string: gradio.interface.Interface
|
5 |
kwargs:
|
6 |
title: Gradio Webapp
|
7 |
-
description:
|
8 |
article: null
|
9 |
thumbnail: null
|
10 |
theme: gradio/seafoam
|
@@ -13,25 +13,18 @@ kwargs:
|
|
13 |
inputs:
|
14 |
- class_string: gradio.components.Dataframe
|
15 |
kwargs:
|
16 |
-
label:
|
17 |
type: array
|
18 |
-
- class_string: gradio.components.Number
|
19 |
-
kwargs:
|
20 |
-
label: slider_value
|
21 |
-
precision: 0
|
22 |
outputs:
|
23 |
-
- class_string: gradio.components.
|
24 |
kwargs:
|
25 |
label: output
|
26 |
-
type: array
|
27 |
fn:
|
28 |
class_string: gradify.gradify_closure
|
29 |
kwargs:
|
30 |
argmaps:
|
31 |
-
- label:
|
32 |
-
postprocessing: 'lambda array: list(map(
|
33 |
-
- label: slider_value
|
34 |
-
postprocessing: null
|
35 |
func_kwargs: {}
|
36 |
-
source: "def
|
37 |
-
\ return
|
|
|
4 |
class_string: gradio.interface.Interface
|
5 |
kwargs:
|
6 |
title: Gradio Webapp
|
7 |
+
description: Keep track of the money i spend everyday
|
8 |
article: null
|
9 |
thumbnail: null
|
10 |
theme: gradio/seafoam
|
|
|
13 |
inputs:
|
14 |
- class_string: gradio.components.Dataframe
|
15 |
kwargs:
|
16 |
+
label: daily_spending
|
17 |
type: array
|
|
|
|
|
|
|
|
|
18 |
outputs:
|
19 |
+
- class_string: gradio.components.Number
|
20 |
kwargs:
|
21 |
label: output
|
|
|
22 |
fn:
|
23 |
class_string: gradify.gradify_closure
|
24 |
kwargs:
|
25 |
argmaps:
|
26 |
+
- label: daily_spending
|
27 |
+
postprocessing: 'lambda array: list(map(float, array[0]))'
|
|
|
|
|
28 |
func_kwargs: {}
|
29 |
+
source: "def track_spending(daily_spending):\n total_spending = sum(daily_spending)\n\
|
30 |
+
\ return total_spending\n"
|