DebasishDhal99 commited on
Commit
6ce18df
1 Parent(s): d965620

Removing bugs from random seed

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -74,5 +74,8 @@ try:
74
  except:
75
  random_seed = random.randint(1, 1000)
76
 
 
 
 
77
  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")
78
  iface.launch()
 
74
  except:
75
  random_seed = random.randint(1, 1000)
76
 
77
+ if random_seed is None:
78
+ random_seed = random.randint(1, 1000)
79
+
80
  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")
81
  iface.launch()