Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio
|
2 |
import kaboom
|
3 |
-
|
4 |
|
5 |
def run_kaboom(reps):
|
6 |
|
@@ -10,7 +10,7 @@ def run_kaboom(reps):
|
|
10 |
parameters.reps = reps
|
11 |
|
12 |
#run the simulation with the car designer objective
|
13 |
-
team =
|
14 |
|
15 |
#check the performance of the team
|
16 |
#invert score *-1 so that higher score = better performance
|
|
|
1 |
import gradio
|
2 |
import kaboom
|
3 |
+
from kaboom.carMakers import runCarDesignProblem
|
4 |
|
5 |
def run_kaboom(reps):
|
6 |
|
|
|
10 |
parameters.reps = reps
|
11 |
|
12 |
#run the simulation with the car designer objective
|
13 |
+
team = runCarDesignProblem(parameters)
|
14 |
|
15 |
#check the performance of the team
|
16 |
#invert score *-1 so that higher score = better performance
|