Spaces:
Runtime error

Energetic26 commited on
Commit
c7b17d9
·
1 Parent(s): 8b0a631
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -7,7 +7,7 @@ env = gym.make('CartPole-v1')
7
  observation = env.reset()
8
 
9
  while True:
10
- image = env.render(mode='rgb_array')
11
  st.image(image, caption='CartPole-v1', use_column_width=True)
12
 
13
  action = env.action_space.sample()
 
7
  observation = env.reset()
8
 
9
  while True:
10
+ image = env.render()
11
  st.image(image, caption='CartPole-v1', use_column_width=True)
12
 
13
  action = env.action_space.sample()
requirements.txt CHANGED
@@ -1,2 +1,3 @@
 
1
  gym[all]
2
  stable-baselines3[extra]
 
1
+ swig
2
  gym[all]
3
  stable-baselines3[extra]