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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -83,6 +83,8 @@ population_size = st.sidebar.slider("Population size", 10, 100, 50)
83
  num_tasks = st.sidebar.slider("Number of tasks", 1, 10, 5)
84
  num_generations = st.sidebar.slider("Number of generations", 1, 100, 10)
85
 
 
 
86
  # Run the evolution
87
  if st.button("Run evolution"):
88
  gas = [GeneticAlgorithm(population_size, task_id) for task_id in range(num_tasks)]
 
83
  num_tasks = st.sidebar.slider("Number of tasks", 1, 10, 5)
84
  num_generations = st.sidebar.slider("Number of generations", 1, 100, 10)
85
 
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)]