Adityadn commited on
Commit
2152d31
·
verified ·
1 Parent(s): 6184a5d

Update webui.py

Browse files
Files changed (1) hide show
  1. webui.py +3 -3
webui.py CHANGED
@@ -33,7 +33,7 @@ def generate_clicked(task):
33
 
34
  with model_management.interrupt_processing_mutex:
35
  model_management.interrupt_processing = False
36
- # outputs=[progress_html, progress_window, progress_gallery, gallery]
37
  execution_start_time = time.perf_counter()
38
  finished = False
39
 
@@ -53,7 +53,7 @@ def generate_clicked(task):
53
  # help bad internet connection by skipping duplicated preview
54
  if len(task.yields) > 0: # if we have the next item
55
  if task.yields[0][0] == 'preview': # if the next item is also a preview
56
- # print('Skipped one preview for better internet connection.')
57
  continue
58
 
59
  percentage, title, image = product
@@ -96,7 +96,7 @@ shared.gradio_root = gr.Blocks(
96
  css=modules.html.css).queue()
97
 
98
  with shared.gradio_root:
99
- currentTask = gr.State(worker.AsyncTask(args=[]))
100
  with gr.Row():
101
  with gr.Column(scale=2):
102
  with gr.Row():
 
33
 
34
  with model_management.interrupt_processing_mutex:
35
  model_management.interrupt_processing = False
36
+ outputs=[progress_html, progress_window, progress_gallery, gallery]
37
  execution_start_time = time.perf_counter()
38
  finished = False
39
 
 
53
  # help bad internet connection by skipping duplicated preview
54
  if len(task.yields) > 0: # if we have the next item
55
  if task.yields[0][0] == 'preview': # if the next item is also a preview
56
+ print('Skipped one preview for better internet connection.')
57
  continue
58
 
59
  percentage, title, image = product
 
96
  css=modules.html.css).queue()
97
 
98
  with shared.gradio_root:
99
+ currentTask = worker.AsyncTask(args=[])
100
  with gr.Row():
101
  with gr.Column(scale=2):
102
  with gr.Row():