Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -381,8 +381,12 @@ def fonc_start(id_session,id_module):
|
|
| 381 |
print(f"\n {num_task_undo} tasks undo\n")
|
| 382 |
return result
|
| 383 |
|
| 384 |
-
def test_start(
|
| 385 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 386 |
#return None
|
| 387 |
def test_change():
|
| 388 |
print("go\n")
|
|
@@ -476,7 +480,7 @@ def make_me():
|
|
| 476 |
#id_modules.append(gr.Number(i,interactive=False,render=False))
|
| 477 |
outputs.append(gr.Image(None,interactive=False,visible=False))
|
| 478 |
id_modules.append(gr.Number(i,interactive=False,visible=False))
|
| 479 |
-
states.append(gr.Textbox("
|
| 480 |
print(len(outputs))
|
| 481 |
print(outputs[0])
|
| 482 |
for o,i,s in zip(outputs,id_modules,states):
|
|
|
|
| 381 |
print(f"\n {num_task_undo} tasks undo\n")
|
| 382 |
return result
|
| 383 |
|
| 384 |
+
def test_start(s):
|
| 385 |
+
if s == "11111":
|
| 386 |
+
return gr.Textbox(s)
|
| 387 |
+
else:
|
| 388 |
+
print(s)
|
| 389 |
+
return gr.Textbox(s+"1")
|
| 390 |
#return None
|
| 391 |
def test_change():
|
| 392 |
print("go\n")
|
|
|
|
| 480 |
#id_modules.append(gr.Number(i,interactive=False,render=False))
|
| 481 |
outputs.append(gr.Image(None,interactive=False,visible=False))
|
| 482 |
id_modules.append(gr.Number(i,interactive=False,visible=False))
|
| 483 |
+
states.append(gr.Textbox("1",interactive=False,visible=False))
|
| 484 |
print(len(outputs))
|
| 485 |
print(outputs[0])
|
| 486 |
for o,i,s in zip(outputs,id_modules,states):
|