Spaces:
Runtime error
Runtime error
Yjiggfghhjnjj
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -165,26 +165,26 @@ with gr.Blocks() as demo:
|
|
| 165 |
gr.Markdown("## [RealVisXL V3](https://huggingface.co)")
|
| 166 |
image_outputs = [image_r3, image_r4]
|
| 167 |
gr.on(
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
)
|
| 189 |
use_negative_prompt.change(
|
| 190 |
fn=lambda x: gr.update(visible=x),
|
|
|
|
| 165 |
gr.Markdown("## [RealVisXL V3](https://huggingface.co)")
|
| 166 |
image_outputs = [image_r3, image_r4]
|
| 167 |
gr.on(
|
| 168 |
+
triggers=[
|
| 169 |
+
prompt.submit,
|
| 170 |
+
negative_prompt.submit,
|
| 171 |
+
run_button.click,
|
| 172 |
+
],
|
| 173 |
+
fn=run_comparison,
|
| 174 |
+
inputs=[
|
| 175 |
+
prompt,
|
| 176 |
+
negative_prompt,
|
| 177 |
+
use_negative_prompt,
|
| 178 |
+
num_inference_steps,
|
| 179 |
+
num_images_per_prompt,
|
| 180 |
+
seed,
|
| 181 |
+
width,
|
| 182 |
+
height,
|
| 183 |
+
guidance_scale,
|
| 184 |
+
randomize_seed,
|
| 185 |
+
],
|
| 186 |
+
outputs=[image_r3, image_r4], # Use the correct outputs here
|
| 187 |
+
api_name="run",
|
| 188 |
)
|
| 189 |
use_negative_prompt.change(
|
| 190 |
fn=lambda x: gr.update(visible=x),
|