gabehubner commited on
Commit
95a5a2a
·
1 Parent(s): 7cd2cbe
Files changed (2) hide show
  1. app.py +1 -1
  2. train.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ with gr.Blocks() as demo:
57
  option = gr.Dropdown(choices=["Torch Tensor of 0's", "Running Average"], type="index")
58
  baselines = gr.Slider(label="Number of Baseline Iterations", interactive=True, minimum=0, maximum=100, value=10, step=5, info="Baseline inputs to collect for the average", render=True)
59
  gr.Button("ATTRIBUTE").click(fn=generate_output, inputs=[baselines, option])
60
- slider = gr.Slider(label="Key Frame", minimum=0, maximum=20000, step=1, value=0)
61
 
62
  gr.Interface(fn=get_frame_and_attribution, inputs=slider, live=True, outputs=[gr.Image(), gr.Label()])
63
 
 
57
  option = gr.Dropdown(choices=["Torch Tensor of 0's", "Running Average"], type="index")
58
  baselines = gr.Slider(label="Number of Baseline Iterations", interactive=True, minimum=0, maximum=100, value=10, step=5, info="Baseline inputs to collect for the average", render=True)
59
  gr.Button("ATTRIBUTE").click(fn=generate_output, inputs=[baselines, option])
60
+ slider = gr.Slider(label="Key Frame", minimum=0, maximum=300, step=1, value=0)
61
 
62
  gr.Interface(fn=get_frame_and_attribution, inputs=slider, live=True, outputs=[gr.Image(), gr.Label()])
63
 
train.py CHANGED
@@ -204,7 +204,7 @@ class TrainingLoop:
204
  score_history = []
205
  frames = []
206
 
207
- for i in range(1):
208
  done = False
209
  score = 0
210
  obs, _ = self.env.reset()
 
204
  score_history = []
205
  frames = []
206
 
207
+ for i in range(10):
208
  done = False
209
  score = 0
210
  obs, _ = self.env.reset()