Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -689,7 +689,7 @@ with gr.Blocks() as app:
|
|
689 |
global step_index
|
690 |
if_end = False
|
691 |
step_index += 1
|
692 |
-
if (step_index
|
693 |
step_index = 0
|
694 |
msg = ""
|
695 |
msg = history
|
|
|
689 |
global step_index
|
690 |
if_end = False
|
691 |
step_index += 1
|
692 |
+
if (step_index == len(process_steps)):
|
693 |
step_index = 0
|
694 |
msg = ""
|
695 |
msg = history
|