Fabrice-TIERCELIN commited on
Commit
41623c5
·
verified ·
1 Parent(s): ce3d9c1

Fix syntax

Browse files
Files changed (1) hide show
  1. gradio_demo.py +7 -5
gradio_demo.py CHANGED
@@ -214,11 +214,13 @@ def stage2_process(
214
  secondes = secondes - (minutes * 60)
215
  hours = minutes // 60
216
  minutes = minutes - (hours * 60)
217
- information = ("Start the process again if you want a different result. " if randomize_seed else "") +
218
- "The new image resolution is " + str(result_width) + " pixels large and " + str(result_height) + " pixels high, so a resolution of " + f'{result_width * result_height:,}' + " pixels. "
219
- "The image(s) has(ve) been generated in " +
220
- ((str(hours) + " h, ") if hours != 0 else "") +
221
- ((str(minutes) + " min, ") if hours != 0 or minutes != 0 else "") +
 
 
222
  str(secondes) + " sec."
223
 
224
  return [noisy_image] + results, [noisy_image] + results, gr.update(value = information, visible = True), event_id
 
214
  secondes = secondes - (minutes * 60)
215
  hours = minutes // 60
216
  minutes = minutes - (hours * 60)
217
+ information = ("Start the process again if you want a different result. " if randomize_seed else "") + \
218
+ "The new image resolution is " + str(result_width) + \
219
+ " pixels large and " + str(result_height) + \
220
+ " pixels high, so a resolution of " + f'{result_width * result_height:,}' + " pixels. " + \
221
+ "The image(s) has(ve) been generated in " + \
222
+ ((str(hours) + " h, ") if hours != 0 else "") + \
223
+ ((str(minutes) + " min, ") if hours != 0 or minutes != 0 else "") + \
224
  str(secondes) + " sec."
225
 
226
  return [noisy_image] + results, [noisy_image] + results, gr.update(value = information, visible = True), event_id