Fabrice-TIERCELIN commited on
Commit
7348f84
·
verified ·
1 Parent(s): 283e652

Update component

Browse files
Files changed (1) hide show
  1. gradio_demo.py +1 -1
gradio_demo.py CHANGED
@@ -212,7 +212,7 @@ def stage2_process(
212
  minutes = minutes - (hours * 60)
213
  information = ("Restart the process to get another result. " if randomize_seed else "") + "The image(s) has(ve) been generated in " + ((str(hours) + " h, ") if hours != 0 else "") + ((str(minutes) + " min, ") if hours != 0 or minutes != 0 else "") + str(secondes) + " sec."
214
 
215
- return [input_image] + results, [input_image] + results, gr.update(visible = True), event_id
216
 
217
  def load_and_reset(param_setting):
218
  print('Start load_and_reset')
 
212
  minutes = minutes - (hours * 60)
213
  information = ("Restart the process to get another result. " if randomize_seed else "") + "The image(s) has(ve) been generated in " + ((str(hours) + " h, ") if hours != 0 else "") + ((str(minutes) + " min, ") if hours != 0 or minutes != 0 else "") + str(secondes) + " sec."
214
 
215
+ return [input_image] + results, [input_image] + results, gr.update(value = information, visible = True), event_id
216
 
217
  def load_and_reset(param_setting):
218
  print('Start load_and_reset')