EEG_cls / app.py
Mohammad Javad Darvishi
'load and plot *.edf files'
5fdbc81
raw
history blame
No virus
352 Bytes
# Import libraries
import streamlit as st
import mne
import matplotlib.pyplot as plt
import os
from misc import *
# Load the edf file
edf_file = st.file_uploader("Upload an EEG edf file", type="edf")
if edf_file is not None:
# Read the file
raw = read_file(edf_file)
# Preprocess and plot the data
preprocessing_and_plotting(raw)