Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -255,10 +255,10 @@ with gr.Blocks(css=css) as demo:
|
|
255 |
)
|
256 |
exp_refresh = gr.Button(value="Click Refresh to get newly prompt examples")
|
257 |
exp_refresh.click(get_samples, None, exps)
|
|
|
258 |
'''
|
259 |
|
260 |
text_button.click(generate_txt2img, inputs=[current_model, text_prompt, negative_prompt, image_style], outputs=image_output)
|
261 |
-
exps.select(lambda x: x[0], exps, text_prompt)
|
262 |
demo.load(get_params, None, [current_model, exps])
|
263 |
|
264 |
demo.launch(show_api=False)
|
|
|
255 |
)
|
256 |
exp_refresh = gr.Button(value="Click Refresh to get newly prompt examples")
|
257 |
exp_refresh.click(get_samples, None, exps)
|
258 |
+
exps.select(lambda x: x[0], exps, text_prompt)
|
259 |
'''
|
260 |
|
261 |
text_button.click(generate_txt2img, inputs=[current_model, text_prompt, negative_prompt, image_style], outputs=image_output)
|
|
|
262 |
demo.load(get_params, None, [current_model, exps])
|
263 |
|
264 |
demo.launch(show_api=False)
|