Spaces:
Runtime error
Runtime error
Commit
·
3a8e72c
1
Parent(s):
1a0224a
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ input_module2 = gr.inputs.Image(label = "Input Image")
|
|
11 |
input_module3 = gr.inputs.Number(label = "Input Number")
|
12 |
|
13 |
# d. define Slider data type
|
14 |
-
input_module4 = gr.inputs.Slider(1,
|
15 |
|
16 |
# e. define Checkbox data type
|
17 |
input_module5 = gr.inputs.Checkbox(label = "Does it work?")
|
@@ -26,7 +26,7 @@ input_module7 = gr.inputs.Dropdown(choices=["park", "zoo", "road"], label = "Inp
|
|
26 |
output_module1 = gr.outputs.Textbox(label = "Output Text")
|
27 |
|
28 |
# b. define image data type
|
29 |
-
output_module2 = gr.outputs.Image(label = "Output Image")
|
30 |
|
31 |
# you can define more output components
|
32 |
# Step 6.3: Define a new function that accommodates the input modules.
|
|
|
11 |
input_module3 = gr.inputs.Number(label = "Input Number")
|
12 |
|
13 |
# d. define Slider data type
|
14 |
+
input_module4 = gr.inputs.Slider(minimum=1,maximum=100, step=5, label = "Input Slider")
|
15 |
|
16 |
# e. define Checkbox data type
|
17 |
input_module5 = gr.inputs.Checkbox(label = "Does it work?")
|
|
|
26 |
output_module1 = gr.outputs.Textbox(label = "Output Text")
|
27 |
|
28 |
# b. define image data type
|
29 |
+
output_module2 = gr.outputs.Image(type="pil",label = "Output Image")
|
30 |
|
31 |
# you can define more output components
|
32 |
# Step 6.3: Define a new function that accommodates the input modules.
|