Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,9 +221,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 221 |
info = "default prompt: {}".format(DEFAULT_PROMPT)
|
| 222 |
)
|
| 223 |
select_button = gr.Button("Select Prompt Generate", variant='primary', elem_id="gen-button")
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
|
| 228 |
with gr.Row():
|
| 229 |
image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
|
|
|
|
| 221 |
info = "default prompt: {}".format(DEFAULT_PROMPT)
|
| 222 |
)
|
| 223 |
select_button = gr.Button("Select Prompt Generate", variant='primary', elem_id="gen-button")
|
| 224 |
+
with gr.Row("prompt-container"):
|
| 225 |
+
btn_refresh = gr.Button(value="Click Refresh to get newly Prompt candidates")
|
| 226 |
+
btn_refresh.click(None, js="window.location.reload()")
|
| 227 |
|
| 228 |
with gr.Row():
|
| 229 |
image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
|