Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,8 @@ with gr.Blocks() as demo:
|
|
101 |
inputs=[prompt, seed, width, height],
|
102 |
outputs=[result, seed, latency],
|
103 |
show_progress="full",
|
104 |
-
api_name=False
|
|
|
105 |
)
|
106 |
|
107 |
generateBtn.click(
|
@@ -109,7 +110,8 @@ with gr.Blocks() as demo:
|
|
109 |
inputs=[prompt, seed, width, height, randomize_seed, num_inference_steps],
|
110 |
outputs=[result, seed, latency],
|
111 |
show_progress="full",
|
112 |
-
api_name=False
|
|
|
113 |
)
|
114 |
|
115 |
def update_ui(realtime_enabled):
|
@@ -134,7 +136,9 @@ with gr.Blocks() as demo:
|
|
134 |
inputs=[realtime, prompt, seed, width, height, randomize_seed, num_inference_steps],
|
135 |
outputs=[result, seed, latency],
|
136 |
show_progress="hidden",
|
137 |
-
api_name=False
|
|
|
|
|
138 |
)
|
139 |
|
140 |
for component in [prompt, width, height, num_inference_steps]:
|
@@ -144,7 +148,8 @@ with gr.Blocks() as demo:
|
|
144 |
outputs=[result, seed, latency],
|
145 |
show_progress="hidden",
|
146 |
api_name=False,
|
147 |
-
trigger_mode="always_last"
|
|
|
148 |
)
|
149 |
|
150 |
# Launch the app
|
|
|
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(
|
|
|
110 |
inputs=[prompt, seed, width, height, randomize_seed, num_inference_steps],
|
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):
|
|
|
136 |
inputs=[realtime, prompt, seed, width, height, randomize_seed, num_inference_steps],
|
137 |
outputs=[result, seed, latency],
|
138 |
show_progress="hidden",
|
139 |
+
api_name=False,
|
140 |
+
show_progress="full",
|
141 |
+
concurrency_limit=20
|
142 |
)
|
143 |
|
144 |
for component in [prompt, width, height, num_inference_steps]:
|
|
|
148 |
outputs=[result, seed, latency],
|
149 |
show_progress="hidden",
|
150 |
api_name=False,
|
151 |
+
trigger_mode="always_last",
|
152 |
+
concurrency_limit=20
|
153 |
)
|
154 |
|
155 |
# Launch the app
|