Spaces:
Sleeping
Sleeping
Commit
·
23fe20b
1
Parent(s):
71e2a20
update
Browse files
app.py
CHANGED
@@ -830,7 +830,7 @@ with gr.Blocks() as demo:
|
|
830 |
)
|
831 |
|
832 |
|
833 |
-
|
834 |
# | Stage2: decode data |
|
835 |
# +========================================================================================+
|
836 |
def reset_run(app_info, in_data, modelname):
|
@@ -891,7 +891,7 @@ with gr.Blocks() as demo:
|
|
891 |
# get the mapped index order and the filled status for each tpl_channels
|
892 |
new_idx = stage1_info["mappingData"][i]["newOrder"]
|
893 |
fill_flags = stage1_info["mappingData"][i]["fillFlags"]
|
894 |
-
#
|
895 |
try:
|
896 |
# step1: Reorder input data
|
897 |
data_shape = app_utils.reorder_data(new_idx, fill_flags, filename, filepath+"temp_data/mapped.csv")
|
@@ -905,7 +905,7 @@ with gr.Blocks() as demo:
|
|
905 |
print('break2!!')
|
906 |
break_flag = True
|
907 |
break
|
908 |
-
#
|
909 |
utils.dataDelete(filepath+"temp_data/")
|
910 |
|
911 |
if break_flag == True:
|
|
|
830 |
)
|
831 |
|
832 |
|
833 |
+
# +========================================================================================+
|
834 |
# | Stage2: decode data |
|
835 |
# +========================================================================================+
|
836 |
def reset_run(app_info, in_data, modelname):
|
|
|
891 |
# get the mapped index order and the filled status for each tpl_channels
|
892 |
new_idx = stage1_info["mappingData"][i]["newOrder"]
|
893 |
fill_flags = stage1_info["mappingData"][i]["fillFlags"]
|
894 |
+
# ----------------------------------------------------------------------------------
|
895 |
try:
|
896 |
# step1: Reorder input data
|
897 |
data_shape = app_utils.reorder_data(new_idx, fill_flags, filename, filepath+"temp_data/mapped.csv")
|
|
|
905 |
print('break2!!')
|
906 |
break_flag = True
|
907 |
break
|
908 |
+
# ----------------------------------------------------------------------------------
|
909 |
utils.dataDelete(filepath+"temp_data/")
|
910 |
|
911 |
if break_flag == True:
|