Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -100,9 +100,8 @@ with gr.Blocks() as demo:
|
|
100 |
fn=generate_image,
|
101 |
inputs=[prompt, seed, width, height],
|
102 |
outputs=[result, seed, latency],
|
103 |
-
show_progress="
|
104 |
-
api_name=False
|
105 |
-
queue=False
|
106 |
)
|
107 |
|
108 |
generateBtn.click(
|
@@ -110,8 +109,7 @@ with gr.Blocks() as demo:
|
|
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 |
-
queue=False
|
115 |
)
|
116 |
|
117 |
def update_ui(realtime_enabled):
|
@@ -136,8 +134,7 @@ with gr.Blocks() as demo:
|
|
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 |
-
queue=False
|
141 |
)
|
142 |
|
143 |
for component in [prompt, width, height, num_inference_steps]:
|
@@ -147,8 +144,7 @@ with gr.Blocks() as demo:
|
|
147 |
outputs=[result, seed, latency],
|
148 |
show_progress="hidden",
|
149 |
api_name=False,
|
150 |
-
trigger_mode="always_last"
|
151 |
-
queue=False
|
152 |
)
|
153 |
|
154 |
# Launch the app
|
|
|
100 |
fn=generate_image,
|
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 |
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 |
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 |
outputs=[result, seed, latency],
|
145 |
show_progress="hidden",
|
146 |
api_name=False,
|
147 |
+
trigger_mode="always_last"
|
|
|
148 |
)
|
149 |
|
150 |
# Launch the app
|