Spaces:
Sleeping
Sleeping
Commit
·
42b7766
1
Parent(s):
5003639
update
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ gradio_temp_dir = os.path.join(tempfile.gettempdir(), 'gradio')
|
|
9 |
os.makedirs(gradio_temp_dir, exist_ok=True)
|
10 |
os.environ['GRADIO_TEMP_DIR'] = gradio_temp_dir
|
11 |
|
12 |
-
|
13 |
|
14 |
This tool is designed to assist you with two main tasks:
|
15 |
1. **Channel Mapping**: Align your EEG channels with our template channels to ensure compatibility with our models.
|
@@ -19,9 +19,7 @@ This tool is designed to assist you with two main tasks:
|
|
19 |
- **Channel locations**: If you don't have the channel location file, we recommend you to download the standard montage <a href="">here</a>. If the channels in those files don't match yours, you can use **EEGLAB** to adjust them to your required montage.
|
20 |
- **Raw data**: Your data format must be a two-dimensional array (channels, timepoints).
|
21 |
- **Channel requirements**: Your data must include some channels that correspond to our template channels, which include: **Fp1, Fp2, F7, F3, Fz, F4, F8, FT7, FC3, FCz, FC4, FT8, T7, C3, Cz, C4, T8, TP7, CP3, CPz, CP4, TP8, P7, P3, Pz, P4, P8, O1, Oz, O2**. At least some of them need to be present for successful mapping. Additionally, please remove any reference, ECG, EOG, EMG... channels before uploading your files.
|
22 |
-
"""
|
23 |
|
24 |
-
readme = """
|
25 |
## 1. Channel Mapping
|
26 |
The following steps will guide you through the process of mapping your EEG channels to our template channels.
|
27 |
|
@@ -216,7 +214,7 @@ with gr.Blocks(delete_cache=(3600, 3600)) as demo:
|
|
216 |
stage2_json = gr.JSON({}, visible=False)
|
217 |
channel_json = gr.JSON({}, visible=False)
|
218 |
|
219 |
-
gr.Markdown(
|
220 |
with gr.Row():
|
221 |
|
222 |
with gr.Column(variant="panel"):
|
@@ -852,7 +850,7 @@ with gr.Blocks(delete_cache=(3600, 3600)) as demo:
|
|
852 |
old_idx = stage1_info["mappingResult"][i]["index"],
|
853 |
orig_flags = stage1_info["mappingResult"][i]["isOriginalData"])
|
854 |
except FileNotFoundError:
|
855 |
-
|
856 |
break_flag = True
|
857 |
break
|
858 |
|
|
|
9 |
os.makedirs(gradio_temp_dir, exist_ok=True)
|
10 |
os.environ['GRADIO_TEMP_DIR'] = gradio_temp_dir
|
11 |
|
12 |
+
readme = """
|
13 |
|
14 |
This tool is designed to assist you with two main tasks:
|
15 |
1. **Channel Mapping**: Align your EEG channels with our template channels to ensure compatibility with our models.
|
|
|
19 |
- **Channel locations**: If you don't have the channel location file, we recommend you to download the standard montage <a href="">here</a>. If the channels in those files don't match yours, you can use **EEGLAB** to adjust them to your required montage.
|
20 |
- **Raw data**: Your data format must be a two-dimensional array (channels, timepoints).
|
21 |
- **Channel requirements**: Your data must include some channels that correspond to our template channels, which include: **Fp1, Fp2, F7, F3, Fz, F4, F8, FT7, FC3, FCz, FC4, FT8, T7, C3, Cz, C4, T8, TP7, CP3, CPz, CP4, TP8, P7, P3, Pz, P4, P8, O1, Oz, O2**. At least some of them need to be present for successful mapping. Additionally, please remove any reference, ECG, EOG, EMG... channels before uploading your files.
|
|
|
22 |
|
|
|
23 |
## 1. Channel Mapping
|
24 |
The following steps will guide you through the process of mapping your EEG channels to our template channels.
|
25 |
|
|
|
214 |
stage2_json = gr.JSON({}, visible=False)
|
215 |
channel_json = gr.JSON({}, visible=False)
|
216 |
|
217 |
+
#gr.Markdown("# ...")
|
218 |
with gr.Row():
|
219 |
|
220 |
with gr.Column(variant="panel"):
|
|
|
850 |
old_idx = stage1_info["mappingResult"][i]["index"],
|
851 |
orig_flags = stage1_info["mappingResult"][i]["isOriginalData"])
|
852 |
except FileNotFoundError:
|
853 |
+
print('stop!!')
|
854 |
break_flag = True
|
855 |
break
|
856 |
|