# 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)