KingNish commited on
Commit
527c62b
1 Parent(s): a7c621b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -100,9 +100,9 @@ with gr.Blocks() as demo:
100
  fn=generate_image,
101
  inputs=[prompt, seed, width, height],
102
  outputs=[result, seed, latency],
103
- show_progress="full",
104
  api_name=False,
105
- concurrency_limit=20
106
  )
107
 
108
  generateBtn.click(
@@ -111,7 +111,7 @@ with gr.Blocks() as demo:
111
  outputs=[result, seed, latency],
112
  show_progress="full",
113
  api_name=False,
114
- concurrency_limit=20
115
  )
116
 
117
  def update_ui(realtime_enabled):
@@ -137,7 +137,7 @@ with gr.Blocks() as demo:
137
  outputs=[result, seed, latency],
138
  show_progress="hidden",
139
  api_name=False,
140
- concurrency_limit=20
141
  )
142
 
143
  for component in [prompt, width, height, num_inference_steps]:
@@ -148,7 +148,7 @@ with gr.Blocks() as demo:
148
  show_progress="hidden",
149
  api_name=False,
150
  trigger_mode="always_last",
151
- concurrency_limit=20
152
  )
153
 
154
  # Launch the app
 
100
  fn=generate_image,
101
  inputs=[prompt, seed, width, height],
102
  outputs=[result, seed, latency],
103
+ show_progress="hidden",
104
  api_name=False,
105
+ queue=False
106
  )
107
 
108
  generateBtn.click(
 
111
  outputs=[result, seed, latency],
112
  show_progress="full",
113
  api_name=False,
114
+ queue=False
115
  )
116
 
117
  def update_ui(realtime_enabled):
 
137
  outputs=[result, seed, latency],
138
  show_progress="hidden",
139
  api_name=False,
140
+ queue=False
141
  )
142
 
143
  for component in [prompt, width, height, num_inference_steps]:
 
148
  show_progress="hidden",
149
  api_name=False,
150
  trigger_mode="always_last",
151
+ queue=False
152
  )
153
 
154
  # Launch the app