Error while using streamlit

Hello , I am new in streamlit. I have an error during the first test. I need help, please.
Below the error

File "/Users/mac/opt/anaconda3/envs/MachineLearning/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 562, in _run_script
    exec(code, module.__dict__)File "/Users/mac/Desktop/Multiple Diseases Prediction System/multiple disease", line 15, in <module>
    diabetes_model = pickle.load(open('/Users/mac/Desktop/Multiple Diseases Prediction System/saved models/diabetes_modal.sav', 'rb'))

Program I am testing

import pickle
import streamlit as st
from streamlit_option_menu import option_menu

loading the saved models

diabetes_model = pickle.load(open(‘/Users/mac/Desktop/Multiple Diseases Prediction System/saved models/diabetes_modal.sav’, ‘rb’))

heart_disease_model = pickle.load(open(‘/Users/mac/Desktop/Multiple Diseases Prediction System/saved models/heart_disease_modal.sav’, ‘rb’))

sidebar for navigate

with st.sitebar:
selected = option_menu(‘Multiple Diseases Prediction System’,
[‘Diabetes Prediction’,
‘Heart Disease Prediction’],
default_index =0)

Diabets Prediction Page

if(selected == ‘Diabetes Prediction’):

# page title
st.title('Diabetes Prediction using ML')

if(selected == ‘Heart Disease Prediction’):

#page title
st.title('Heart Disease Prediction using ML')

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.