Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -340,6 +340,7 @@ def fonc_load_gallery(id_session,gallery):
|
|
340 |
|
341 |
def fonc_start(id_session,id_module,s,cont):
|
342 |
if cont==False:
|
|
|
343 |
return None,gr.Textbox(s)
|
344 |
task_actu={}
|
345 |
model_actu=""
|
@@ -369,7 +370,7 @@ def fonc_start(id_session,id_module,s,cont):
|
|
369 |
result=gen_fn(model_actu, task_actu["prompt"], task_actu["nprompt"], task_actu["height"], task_actu["width"], task_actu["steps"], task_actu["cfg"], task_actu["seed"])
|
370 |
print("image generate !\n")
|
371 |
if result!=None:
|
372 |
-
result=gr.Image(result)
|
373 |
id_image=len(cache_image[f"{id_session}"])
|
374 |
for model_plus_tasks in cache_list_task[f"{id_session}"]:
|
375 |
if model_plus_tasks["id_module"]==id_module:
|
|
|
340 |
|
341 |
def fonc_start(id_session,id_module,s,cont):
|
342 |
if cont==False:
|
343 |
+
print("manual stop")
|
344 |
return None,gr.Textbox(s)
|
345 |
task_actu={}
|
346 |
model_actu=""
|
|
|
370 |
result=gen_fn(model_actu, task_actu["prompt"], task_actu["nprompt"], task_actu["height"], task_actu["width"], task_actu["steps"], task_actu["cfg"], task_actu["seed"])
|
371 |
print("image generate !\n")
|
372 |
if result!=None:
|
373 |
+
#result=gr.Image(result)
|
374 |
id_image=len(cache_image[f"{id_session}"])
|
375 |
for model_plus_tasks in cache_list_task[f"{id_session}"]:
|
376 |
if model_plus_tasks["id_module"]==id_module:
|