Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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="
|
104 |
api_name=False,
|
105 |
-
|
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 |
-
|
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 |
-
|
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 |
-
|
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
|