wenjiao commited on
Commit
6098c15
1 Parent(s): bd00bf4
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -30,10 +30,6 @@ def set_msg():
30
  else:
31
  return "The current traffic is not high. You can submit your job now."
32
 
33
- def execute():
34
- global queue_size
35
- queue_size += 1
36
-
37
  def img2img_generate(source_img, prompt, steps=25, strength=0.75, seed=42, guidance_scale=7.5):
38
 
39
  print('image-to-image')
@@ -139,6 +135,7 @@ with gr.Blocks(css=css) as demo:
139
  gr.Markdown("# Stable Diffusion Inference Demo on 4th Gen Intel Xeon Scalable Processors")
140
  gr.Markdown(md)
141
 
 
142
  textBoxGreen = gr.Textbox(set_msg, every=3, label='Real-time Jobs in Queue', elem_id='txtGreenStyle', visible=True)
143
  textBoxOrange = gr.Textbox(set_msg, every=3, label='Real-time Jobs in Queue', elem_id='txtOrangeStyle', visible=False)
144
 
 
30
  else:
31
  return "The current traffic is not high. You can submit your job now."
32
 
 
 
 
 
33
  def img2img_generate(source_img, prompt, steps=25, strength=0.75, seed=42, guidance_scale=7.5):
34
 
35
  print('image-to-image')
 
135
  gr.Markdown("# Stable Diffusion Inference Demo on 4th Gen Intel Xeon Scalable Processors")
136
  gr.Markdown(md)
137
 
138
+ text = gr.Text(queue_size)
139
  textBoxGreen = gr.Textbox(set_msg, every=3, label='Real-time Jobs in Queue', elem_id='txtGreenStyle', visible=True)
140
  textBoxOrange = gr.Textbox(set_msg, every=3, label='Real-time Jobs in Queue', elem_id='txtOrangeStyle', visible=False)
141