DebasishDhal99
commited on
Commit
·
d9a3422
1
Parent(s):
50fd4d2
Increasing default steps to 1M.
Browse files
app.py
CHANGED
@@ -77,9 +77,9 @@ def generate_random_walk(iters, step_size = 1, random_seed = None):
|
|
77 |
|
78 |
return image_array, csv_file
|
79 |
|
80 |
-
iters = gr.Number(value=
|
81 |
step_size = gr.Number(value=1,label="Step size")
|
82 |
-
random_seed = gr.Number(value=42,label="Random seed
|
83 |
|
84 |
iface = gr.Interface(fn=generate_random_walk, inputs=[iters, step_size, random_seed], outputs=["image","file"], title="2-D Random Walk", description="Uniform steps along NEWS directions only")
|
85 |
iface.launch()
|
|
|
77 |
|
78 |
return image_array, csv_file
|
79 |
|
80 |
+
iters = gr.Number(value=1e6,label="How many random steps?")
|
81 |
step_size = gr.Number(value=1,label="Step size")
|
82 |
+
random_seed = gr.Number(value=42,label="Random seed. Delete it to go full random mode, keep it for reproducibility")
|
83 |
|
84 |
iface = gr.Interface(fn=generate_random_walk, inputs=[iters, step_size, random_seed], outputs=["image","file"], title="2-D Random Walk", description="Uniform steps along NEWS directions only")
|
85 |
iface.launch()
|