Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,8 @@ with gr.Blocks() as demo:
|
|
102 |
outputs=[result, seed, latency],
|
103 |
show_progress="hidden",
|
104 |
api_name=False,
|
105 |
-
queue=False
|
|
|
106 |
)
|
107 |
|
108 |
generateBtn.click(
|
@@ -111,7 +112,8 @@ with gr.Blocks() as demo:
|
|
111 |
outputs=[result, seed, latency],
|
112 |
show_progress="full",
|
113 |
api_name=False,
|
114 |
-
queue=False
|
|
|
115 |
)
|
116 |
|
117 |
def update_ui(realtime_enabled):
|
@@ -124,7 +126,8 @@ with gr.Blocks() as demo:
|
|
124 |
fn=update_ui,
|
125 |
inputs=[realtime],
|
126 |
outputs=[prompt, generateBtn],
|
127 |
-
queue=False
|
|
|
128 |
)
|
129 |
|
130 |
def realtime_generation(*args):
|
@@ -137,7 +140,8 @@ with gr.Blocks() as demo:
|
|
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,7 +152,8 @@ with gr.Blocks() as demo:
|
|
148 |
show_progress="hidden",
|
149 |
api_name=False,
|
150 |
trigger_mode="always_last",
|
151 |
-
queue=False
|
|
|
152 |
)
|
153 |
|
154 |
# Launch the app
|
|
|
102 |
outputs=[result, seed, latency],
|
103 |
show_progress="hidden",
|
104 |
api_name=False,
|
105 |
+
queue=False,
|
106 |
+
concurrency_limit=None
|
107 |
)
|
108 |
|
109 |
generateBtn.click(
|
|
|
112 |
outputs=[result, seed, latency],
|
113 |
show_progress="full",
|
114 |
api_name=False,
|
115 |
+
queue=False,
|
116 |
+
concurrency_limit=None
|
117 |
)
|
118 |
|
119 |
def update_ui(realtime_enabled):
|
|
|
126 |
fn=update_ui,
|
127 |
inputs=[realtime],
|
128 |
outputs=[prompt, generateBtn],
|
129 |
+
queue=False,
|
130 |
+
concurrency_limit=None
|
131 |
)
|
132 |
|
133 |
def realtime_generation(*args):
|
|
|
140 |
outputs=[result, seed, latency],
|
141 |
show_progress="hidden",
|
142 |
api_name=False,
|
143 |
+
queue=False,
|
144 |
+
concurrency_limit=None
|
145 |
)
|
146 |
|
147 |
for component in [prompt, width, height, num_inference_steps]:
|
|
|
152 |
show_progress="hidden",
|
153 |
api_name=False,
|
154 |
trigger_mode="always_last",
|
155 |
+
queue=False,
|
156 |
+
concurrency_limit=None
|
157 |
)
|
158 |
|
159 |
# Launch the app
|