DebasishDhal99
commited on
Commit
·
671dbb5
1
Parent(s):
a6b2d6a
Update app.py
Browse files
app.py
CHANGED
@@ -67,9 +67,9 @@ def generate_random_walk(iters, step_size = 1, random_seed=42):
|
|
67 |
image_array = np.array(fig.canvas.renderer.buffer_rgba())
|
68 |
return image_array
|
69 |
|
70 |
-
iters = gr.Number(label="How many random steps?"
|
71 |
-
step_size = gr.Number(label="Step size"
|
72 |
-
random_seed = gr.Number(label="Random seed"
|
73 |
|
74 |
iface = gr.Interface(fn=generate_random_walk, inputs=[iters, step_size, random_seed], outputs="image", title="2-D Random Walk Plot", description="Steps along NEWS directions only")
|
75 |
iface.launch()
|
|
|
67 |
image_array = np.array(fig.canvas.renderer.buffer_rgba())
|
68 |
return image_array
|
69 |
|
70 |
+
iters = gr.Number(value=1e5,label="How many random steps?")
|
71 |
+
step_size = gr.Number(value=1,label="Step size")
|
72 |
+
random_seed = gr.Number(value=42,label="Random seed")
|
73 |
|
74 |
iface = gr.Interface(fn=generate_random_walk, inputs=[iters, step_size, random_seed], outputs="image", title="2-D Random Walk Plot", description="Steps along NEWS directions only")
|
75 |
iface.launch()
|