nouamanetazi HF staff commited on
Commit
f106054
1 Parent(s): 454404f

update default params

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ model = keras.models.load_model('saved_model')
19
  samples = []
20
  example_driving = os.listdir('asset/driving')
21
  for video in example_driving:
22
- samples.append([f'asset/driving/{video}', 0.5, False])
23
 
24
 
25
  def inference(driving,
@@ -86,7 +86,7 @@ iface = gr.Interface(
86
  inputs = [
87
  gr.inputs.Video(label='Video', type='mp4'),
88
  gr.inputs.Slider(minimum=.1, maximum=.9, default=.5, step=.001, label="prediction start"),
89
- gr.inputs.Checkbox(label="predict one frame only", default=False),
90
 
91
  ],
92
  outputs = [
 
19
  samples = []
20
  example_driving = os.listdir('asset/driving')
21
  for video in example_driving:
22
+ samples.append([f'asset/driving/{video}', 0.5, True])
23
 
24
 
25
  def inference(driving,
 
86
  inputs = [
87
  gr.inputs.Video(label='Video', type='mp4'),
88
  gr.inputs.Slider(minimum=.1, maximum=.9, default=.5, step=.001, label="prediction start"),
89
+ gr.inputs.Checkbox(label="predict one frame only", default=True),
90
 
91
  ],
92
  outputs = [