Andrei Cozma commited on
Commit
18d81a3
·
1 Parent(s): 843e8ad
Files changed (1) hide show
  1. demo.py +3 -1
demo.py CHANGED
@@ -342,10 +342,11 @@ with gr.Blocks(title="CS581 Demo") as demo:
342
  out_reward = gr.components.Textbox(label="Last Reward")
343
 
344
  out_image_policy = gr.components.Image(
345
- value=np.ones((16, 128)),
346
  label="Action Sampled vs Policy Distribution for Current State",
347
  type="numpy",
348
  image_mode="RGB",
 
 
349
  )
350
 
351
  with gr.Row():
@@ -367,6 +368,7 @@ with gr.Blocks(title="CS581 Demo") as demo:
367
  type="numpy",
368
  image_mode="RGB",
369
  value=np.ones((frame_env_h, frame_env_w, 3)),
 
370
  )
371
 
372
  with gr.Row():
 
342
  out_reward = gr.components.Textbox(label="Last Reward")
343
 
344
  out_image_policy = gr.components.Image(
 
345
  label="Action Sampled vs Policy Distribution for Current State",
346
  type="numpy",
347
  image_mode="RGB",
348
+ value=np.ones((16, frame_policy_w)),
349
+ shape=(16, frame_policy_w),
350
  )
351
 
352
  with gr.Row():
 
368
  type="numpy",
369
  image_mode="RGB",
370
  value=np.ones((frame_env_h, frame_env_w, 3)),
371
+ shape=(frame_env_h, frame_env_w),
372
  )
373
 
374
  with gr.Row():