igashov commited on
Commit
9c586b0
1 Parent(s): 33cc46c
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -184,7 +184,7 @@ def generate(input_file, n_steps):
184
  return [
185
  draw_sample(0, out_files),
186
  [inp_sdf] + out_files,
187
- gr.Radio.update(visible=True, value='Sample 1')
188
  ]
189
 
190
 
@@ -228,7 +228,7 @@ with demo:
228
  type='index',
229
  show_label=False,
230
  visible=False,
231
- interactive=True,
232
  )
233
  visualization = gr.HTML()
234
 
@@ -242,7 +242,7 @@ with demo:
242
  f'examples/example_{idx+1}.sdf',
243
  10,
244
  show_input(f'examples/example_{idx+1}.sdf'),
245
- gr.Radio(value='Sample 1', visible=False)
246
  ],
247
  inputs=[examples],
248
  outputs=[input_file, n_steps, visualization, samples]
@@ -258,7 +258,7 @@ with demo:
258
  outputs=[visualization],
259
  )
260
  input_file.clear(
261
- fn=lambda: ['', gr.Radio(value='Sample 1', visible=False)],
262
  inputs=[],
263
  outputs=[visualization, samples],
264
  )
 
184
  return [
185
  draw_sample(0, out_files),
186
  [inp_sdf] + out_files,
187
+ gr.Radio.update(visible=True, interactive=True, value='Sample 1')
188
  ]
189
 
190
 
 
228
  type='index',
229
  show_label=False,
230
  visible=False,
231
+ interactive=False,
232
  )
233
  visualization = gr.HTML()
234
 
 
242
  f'examples/example_{idx+1}.sdf',
243
  10,
244
  show_input(f'examples/example_{idx+1}.sdf'),
245
+ gr.Radio(value='Sample 1', visible=False, interactive=False)
246
  ],
247
  inputs=[examples],
248
  outputs=[input_file, n_steps, visualization, samples]
 
258
  outputs=[visualization],
259
  )
260
  input_file.clear(
261
+ fn=lambda: ['', gr.Radio(value='Sample 1', visible=False, interactive=False)],
262
  inputs=[],
263
  outputs=[visualization, samples],
264
  )