Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,6 @@ def generate(
|
|
51 |
|
52 |
use_random_seed = gr.Checkbox(value=False, label="Use Random Seed", info="Check to use a random seed which is a start point for the generation process")
|
53 |
|
54 |
-
if use_random_seed:
|
55 |
-
manual_seed_hidden = True
|
56 |
-
else:
|
57 |
-
manual_seed_hidden = False
|
58 |
|
59 |
additional_inputs = [
|
60 |
gr.Slider(
|
@@ -108,7 +104,7 @@ additional_inputs = [
|
|
108 |
interactive=True,
|
109 |
label="Manual Seed",
|
110 |
info="A starting point to initiate the generation process",
|
111 |
-
visible=
|
112 |
),
|
113 |
]
|
114 |
|
|
|
51 |
|
52 |
use_random_seed = gr.Checkbox(value=False, label="Use Random Seed", info="Check to use a random seed which is a start point for the generation process")
|
53 |
|
|
|
|
|
|
|
|
|
54 |
|
55 |
additional_inputs = [
|
56 |
gr.Slider(
|
|
|
104 |
interactive=True,
|
105 |
label="Manual Seed",
|
106 |
info="A starting point to initiate the generation process",
|
107 |
+
visible={'False' if use_random_seed else 'True'}
|
108 |
),
|
109 |
]
|
110 |
|