Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -365,14 +365,13 @@ def fonc_start(id_session,id_module,s,cont):
|
|
365 |
task_actu=model_plus_tasks["task"][0]
|
366 |
print(f"module num {id_module} take {model_actu}\n")
|
367 |
if model_actu=="":#crash
|
368 |
-
print(cache_list_task[f"{id_session}"])
|
369 |
print("Stop with :"+s+"\n")
|
370 |
return None,gr.Textbox(s)
|
371 |
-
print("begin gen image
|
372 |
print(model_actu)
|
373 |
print(task_actu)
|
374 |
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"])
|
375 |
-
print("
|
376 |
if result!=None:
|
377 |
#result=gr.Image(result)
|
378 |
id_image=len(cache_image[f"{id_session}"])
|
@@ -484,7 +483,7 @@ def make_me():
|
|
484 |
|
485 |
with gr.Column():
|
486 |
with gr.Row():
|
487 |
-
nb_req_simult=gr.Number(
|
488 |
nb_req_simult_max_by_mod=gr.Number(2,"Number max simultaneous request by model")
|
489 |
|
490 |
button_start=gr.Button("START")
|
|
|
365 |
task_actu=model_plus_tasks["task"][0]
|
366 |
print(f"module num {id_module} take {model_actu}\n")
|
367 |
if model_actu=="":#crash
|
|
|
368 |
print("Stop with :"+s+"\n")
|
369 |
return None,gr.Textbox(s)
|
370 |
+
print("begin gen image:")
|
371 |
print(model_actu)
|
372 |
print(task_actu)
|
373 |
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"])
|
374 |
+
print("reception")
|
375 |
if result!=None:
|
376 |
#result=gr.Image(result)
|
377 |
id_image=len(cache_image[f"{id_session}"])
|
|
|
483 |
|
484 |
with gr.Column():
|
485 |
with gr.Row():
|
486 |
+
nb_req_simult=gr.Number(10,"Number simultaneous request")
|
487 |
nb_req_simult_max_by_mod=gr.Number(2,"Number max simultaneous request by model")
|
488 |
|
489 |
button_start=gr.Button("START")
|