Sephfox commited on
Commit
4961681
·
verified ·
1 Parent(s): ac26a42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -86,7 +86,9 @@ num_generations = st.sidebar.slider("Number of generations", 1, 100, 10)
86
  gas = None
87
 
88
  # Run the evolution
 
89
  if st.button("Run evolution"):
 
90
  gas = [GeneticAlgorithm(population_size, task_id) for task_id in range(num_tasks)]
91
  for generation in range(num_generations):
92
  for ga in gas:
 
86
  gas = None
87
 
88
  # Run the evolution
89
+ gas = []
90
  if st.button("Run evolution"):
91
+ gas = [GeneticAlgorithm(population_size, task_id) for task_id in range(num_tasks)]
92
  gas = [GeneticAlgorithm(population_size, task_id) for task_id in range(num_tasks)]
93
  for generation in range(num_generations):
94
  for ga in gas: