Spaces:
Running
Running
Update gradio_app.py
Browse files- gradio_app.py +3 -1
gradio_app.py
CHANGED
@@ -125,11 +125,13 @@ with gr.Blocks() as demo:
|
|
125 |
value=1000,
|
126 |
maximum=10_000,
|
127 |
)
|
|
|
|
|
128 |
seed_num = gr.Number(
|
129 |
label="RNG seed value (can be used for reproducibility):",
|
130 |
precision=0, # integer input
|
131 |
minimum=0,
|
132 |
-
value=
|
133 |
)
|
134 |
|
135 |
submit_button = gr.Button(
|
|
|
125 |
value=1000,
|
126 |
maximum=10_000,
|
127 |
)
|
128 |
+
|
129 |
+
val = random.randint(0, 10000)
|
130 |
seed_num = gr.Number(
|
131 |
label="RNG seed value (can be used for reproducibility):",
|
132 |
precision=0, # integer input
|
133 |
minimum=0,
|
134 |
+
value=val,
|
135 |
)
|
136 |
|
137 |
submit_button = gr.Button(
|