Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -264,6 +264,9 @@ def fonc_del_param(lp,txt_input,neg_input,width,height,steps,cfg,seed):
|
|
264 |
if lp == []:
|
265 |
lp.append(["","",0,0,0,0,-1])
|
266 |
return gr.Dataset(samples=lp) , gr.Dropdown(choices=[["a",lp]], value=lp)
|
|
|
|
|
|
|
267 |
|
268 |
def make_me():
|
269 |
with gr.Column():
|
@@ -312,7 +315,7 @@ def make_me():
|
|
312 |
with gr.Row():
|
313 |
disp_info=gr.Textbox(label="Info")
|
314 |
load_info=gr.Button("Load info")
|
315 |
-
|
316 |
|
317 |
js_code = """
|
318 |
|
|
|
264 |
if lp == []:
|
265 |
lp.append(["","",0,0,0,0,-1])
|
266 |
return gr.Dataset(samples=lp) , gr.Dropdown(choices=[["a",lp]], value=lp)
|
267 |
+
|
268 |
+
def fonc_load_info(a,b):
|
269 |
+
return True
|
270 |
|
271 |
def make_me():
|
272 |
with gr.Column():
|
|
|
315 |
with gr.Row():
|
316 |
disp_info=gr.Textbox(label="Info")
|
317 |
load_info=gr.Button("Load info")
|
318 |
+
load_info.click(fonc_load_info,[nb_of_models_to_gen,index_first_model],[disp_info])
|
319 |
|
320 |
js_code = """
|
321 |
|