Spaces:
Sleeping
Sleeping
superlazycoder
commited on
Commit
•
e836802
1
Parent(s):
fdd4431
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,8 @@ def reject(prompt, negative_prompt, seed, randomize_seed, width, height, guidanc
|
|
64 |
@spaces.GPU
|
65 |
def accept(*args):
|
66 |
|
67 |
-
|
|
|
68 |
'''
|
69 |
markdown_blocks = list(args[1:-2])
|
70 |
labels = args[-2]
|
@@ -203,7 +204,7 @@ with gr.Blocks(css=css) as demo:
|
|
203 |
|
204 |
right_button.click(
|
205 |
fn = accept,
|
206 |
-
inputs = [prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
207 |
outputs = [conv_id_element]
|
208 |
)
|
209 |
|
|
|
64 |
@spaces.GPU
|
65 |
def accept(*args):
|
66 |
|
67 |
+
conv_id_element = args[0]
|
68 |
+
conv_id_element.visible=True
|
69 |
'''
|
70 |
markdown_blocks = list(args[1:-2])
|
71 |
labels = args[-2]
|
|
|
204 |
|
205 |
right_button.click(
|
206 |
fn = accept,
|
207 |
+
inputs = [conv_id_element, prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
208 |
outputs = [conv_id_element]
|
209 |
)
|
210 |
|