Spaces:
Sleeping
Sleeping
Commit
·
d941b9c
1
Parent(s):
8206bc7
update
Browse files
app.py
CHANGED
@@ -291,7 +291,7 @@ with gr.Blocks() as demo:
|
|
291 |
# +========================================================================================+
|
292 |
def reset_all(stage1_info, stage2_info, in_loc):
|
293 |
# interrupt Stage2
|
294 |
-
if stage2_info!=None
|
295 |
utils.dataDelete(stage2_info["filePath"])
|
296 |
|
297 |
rootpath = os.path.dirname(str(in_loc))
|
|
|
291 |
# +========================================================================================+
|
292 |
def reset_all(stage1_info, stage2_info, in_loc):
|
293 |
# interrupt Stage2
|
294 |
+
if stage2_info!=None and stage2_info["state"]=="running":
|
295 |
utils.dataDelete(stage2_info["filePath"])
|
296 |
|
297 |
rootpath = os.path.dirname(str(in_loc))
|