Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ list_ratios=[["None",[None,None]],
|
|
251 |
|
252 |
def fonc_add_param(lp,txt_input,neg_input,width,height,steps,cfg,seed):
|
253 |
lp.append([txt_input,neg_input,width,height,steps,cfg,seed])
|
254 |
-
return gr.
|
255 |
|
256 |
def make_me():
|
257 |
with gr.Row():
|
@@ -289,7 +289,7 @@ def make_me():
|
|
289 |
outputs=[txt_input,neg_input,width,height,steps,cfg,seed],
|
290 |
)
|
291 |
|
292 |
-
add_param.click(fonc_add_param,[lp,txt_input,neg_input,width,height,steps,cfg,seed],[disp_param,lp])
|
293 |
|
294 |
|
295 |
js_code = """
|
|
|
251 |
|
252 |
def fonc_add_param(lp,txt_input,neg_input,width,height,steps,cfg,seed):
|
253 |
lp.append([txt_input,neg_input,width,height,steps,cfg,seed])
|
254 |
+
return gr.Dataset(samples=lp) , gr.Dropdown(choices=["a",lp], value=lp)
|
255 |
|
256 |
def make_me():
|
257 |
with gr.Row():
|
|
|
289 |
outputs=[txt_input,neg_input,width,height,steps,cfg,seed],
|
290 |
)
|
291 |
|
292 |
+
add_param.click(fonc_add_param,[lp,txt_input,neg_input,width,height,steps,cfg,seed],[disp_param.dataset,lp])
|
293 |
|
294 |
|
295 |
js_code = """
|