Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ def optimize_signal_rl(congestion_level):
|
|
147 |
model.learn(total_timesteps=1000)
|
148 |
|
149 |
# Reset environment to start the simulation
|
150 |
-
obs,
|
151 |
|
152 |
# Loop through to simulate for 10 timesteps
|
153 |
for _ in range(10):
|
|
|
147 |
model.learn(total_timesteps=1000)
|
148 |
|
149 |
# Reset environment to start the simulation
|
150 |
+
obs, info = env.reset()
|
151 |
|
152 |
# Loop through to simulate for 10 timesteps
|
153 |
for _ in range(10):
|