Fabrice-TIERCELIN commited on
Commit
44c0d4a
·
verified ·
1 Parent(s): ead4ed8

print("Debug mode")

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -367,6 +367,7 @@ def process(input_image, prompt,
367
  global stream, input_image_debug_value, prompt_debug_value, total_second_length_debug_value
368
 
369
  if input_image_debug_value is not None or prompt_debug_value is not None or total_second_length_debug_value is not None:
 
370
  input_image = input_image_debug_value
371
  prompt = prompt_debug_value
372
  total_second_length = total_second_length_debug_value
@@ -391,7 +392,6 @@ def process(input_image, prompt,
391
 
392
  if flag == 'file':
393
  output_filename = data
394
- print("File: " + output_filename)
395
  yield output_filename, gr.update(), gr.update(), gr.update(), gr.update(interactive=False), gr.update(interactive=True)
396
 
397
  if flag == 'progress':
@@ -399,7 +399,6 @@ def process(input_image, prompt,
399
  yield gr.update(), gr.update(visible=True, value=preview), desc, html, gr.update(interactive=False), gr.update(interactive=True)
400
 
401
  if flag == 'end':
402
- print("End: " + output_filename)
403
  yield output_filename, gr.update(visible=False), gr.update(), '', gr.update(interactive=True), gr.update(interactive=False)
404
  break
405
 
 
367
  global stream, input_image_debug_value, prompt_debug_value, total_second_length_debug_value
368
 
369
  if input_image_debug_value is not None or prompt_debug_value is not None or total_second_length_debug_value is not None:
370
+ print("Debug mode")
371
  input_image = input_image_debug_value
372
  prompt = prompt_debug_value
373
  total_second_length = total_second_length_debug_value
 
392
 
393
  if flag == 'file':
394
  output_filename = data
 
395
  yield output_filename, gr.update(), gr.update(), gr.update(), gr.update(interactive=False), gr.update(interactive=True)
396
 
397
  if flag == 'progress':
 
399
  yield gr.update(), gr.update(visible=True, value=preview), desc, html, gr.update(interactive=False), gr.update(interactive=True)
400
 
401
  if flag == 'end':
 
402
  yield output_filename, gr.update(visible=False), gr.update(), '', gr.update(interactive=True), gr.update(interactive=False)
403
  break
404