Spaces:
Runtime error
Runtime error
make radio button invisible instead of commenting out
Browse files
app.py
CHANGED
@@ -545,12 +545,13 @@ with Blocks(
|
|
545 |
new_image_trigger = gr.Number(value=0, visible=False)
|
546 |
|
547 |
# UNCOMMENT THIS WHEN YOU WANT TO TOGGLE INPAINTING OPTION
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
|
|
554 |
|
555 |
# language_instruction = gr.Textbox(
|
556 |
# label="Enter your prompt here",
|
|
|
545 |
new_image_trigger = gr.Number(value=0, visible=False)
|
546 |
|
547 |
# UNCOMMENT THIS WHEN YOU WANT TO TOGGLE INPAINTING OPTION
|
548 |
+
task = gr.Radio(
|
549 |
+
choices=["Version 1: Single Layer", 'Version 2: Inpainting w/ Multiple Layers'],
|
550 |
+
type="value",
|
551 |
+
value="Grounded Generation",
|
552 |
+
label="Task",
|
553 |
+
visible=False,
|
554 |
+
)
|
555 |
|
556 |
# language_instruction = gr.Textbox(
|
557 |
# label="Enter your prompt here",
|