tlam commited on
Commit ·
c937d68
1
Parent(s): 3a320b8
Fix: replace Gradio 6.x 'buttons' param with 'show_copy_button' for v5.x compat
Browse files- app.py +7 -4
- requirements.txt +1 -2
app.py
CHANGED
|
@@ -360,19 +360,22 @@ def main():
|
|
| 360 |
label="Dimensions", lines=1, interactive=False
|
| 361 |
)
|
| 362 |
prompt_output = gr.Textbox(
|
| 363 |
-
label="Prompt", lines=4,
|
| 364 |
)
|
| 365 |
negative_prompt_output = gr.Textbox(
|
| 366 |
label="Negative Prompt",
|
| 367 |
lines=4,
|
| 368 |
-
|
| 369 |
interactive=False,
|
| 370 |
)
|
| 371 |
seed_output = gr.Textbox(
|
| 372 |
-
label="Seed Number",
|
|
|
|
|
|
|
|
|
|
| 373 |
)
|
| 374 |
lora_output = gr.Textbox(
|
| 375 |
-
label="LoRA(s)", lines=2,
|
| 376 |
)
|
| 377 |
original_metadata_output = gr.Textbox(
|
| 378 |
label="Original Metadata", lines=15, interactive=False
|
|
|
|
| 360 |
label="Dimensions", lines=1, interactive=False
|
| 361 |
)
|
| 362 |
prompt_output = gr.Textbox(
|
| 363 |
+
label="Prompt", lines=4, show_copy_button=True, interactive=False
|
| 364 |
)
|
| 365 |
negative_prompt_output = gr.Textbox(
|
| 366 |
label="Negative Prompt",
|
| 367 |
lines=4,
|
| 368 |
+
show_copy_button=True,
|
| 369 |
interactive=False,
|
| 370 |
)
|
| 371 |
seed_output = gr.Textbox(
|
| 372 |
+
label="Seed Number",
|
| 373 |
+
lines=1,
|
| 374 |
+
show_copy_button=True,
|
| 375 |
+
interactive=False,
|
| 376 |
)
|
| 377 |
lora_output = gr.Textbox(
|
| 378 |
+
label="LoRA(s)", lines=2, show_copy_button=True, interactive=False
|
| 379 |
)
|
| 380 |
original_metadata_output = gr.Textbox(
|
| 381 |
label="Original Metadata", lines=15, interactive=False
|
requirements.txt
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
gradio
|
| 2 |
-
Pillow
|
| 3 |
-
numpy
|
|
|
|
| 1 |
gradio
|
| 2 |
+
Pillow
|
|
|