Fabrice-TIERCELIN commited on
Commit
64f7080
·
verified ·
1 Parent(s): be6bf41

if result_gallery is not None:

Browse files
Files changed (1) hide show
  1. gradio_demo.py +3 -2
gradio_demo.py CHANGED
@@ -446,8 +446,9 @@ def load_and_reset(param_setting):
446
 
447
  def log_information(result_gallery):
448
  print('log_information')
449
- for i, result in enumerate(result_gallery):
450
- print(result[0][0])
 
451
 
452
  def on_select_result(result_gallery, evt: gr.SelectData):
453
  print('on_select_result')
 
446
 
447
  def log_information(result_gallery):
448
  print('log_information')
449
+ if result_gallery is not None:
450
+ for i, result in enumerate(result_gallery):
451
+ print(result[0][0])
452
 
453
  def on_select_result(result_gallery, evt: gr.SelectData):
454
  print('on_select_result')