mohitrajdeo
commited on
Commit
·
41f1a81
1
Parent(s):
873336d
feat(sidebar): add 'Mental-Analysis' option to navigation menu
Browse filesThis commit introduces a new navigation option 'Mental-Analysis' to the sidebar menu. Additionally, it corrects the string comparison for the 'Mental-Analysis' option to use single quotes consistently.
app.py
CHANGED
@@ -62,7 +62,7 @@ with st.sidebar:
|
|
62 |
|
63 |
selected = option_menu(
|
64 |
menu_title="Navigation",
|
65 |
-
options=['Home', 'Diabetes Prediction','Hypertension Prediction', 'Cardiovascular Disease Prediction', 'Stroke Prediction','Asthma Prediction', 'Sleep Health Analysis','Medical Consultant', 'Data Visualization'],
|
66 |
icons=['house', 'activity', 'lungs', 'heart-pulse', 'brain', 'bar-chart', 'chat'],
|
67 |
menu_icon="cast",
|
68 |
default_index=0,
|
@@ -642,7 +642,7 @@ from huggingface_hub import login
|
|
642 |
|
643 |
login(token=os.environ.get("HF_TOKEN"))
|
644 |
|
645 |
-
if selected ==
|
646 |
# Load the Hugging Face model
|
647 |
model_name = "mental/mental-roberta-base"
|
648 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
62 |
|
63 |
selected = option_menu(
|
64 |
menu_title="Navigation",
|
65 |
+
options=['Home', 'Diabetes Prediction','Hypertension Prediction', 'Cardiovascular Disease Prediction', 'Stroke Prediction','Asthma Prediction', 'Sleep Health Analysis','Mental-Analysis','Medical Consultant', 'Data Visualization'],
|
66 |
icons=['house', 'activity', 'lungs', 'heart-pulse', 'brain', 'bar-chart', 'chat'],
|
67 |
menu_icon="cast",
|
68 |
default_index=0,
|
|
|
642 |
|
643 |
login(token=os.environ.get("HF_TOKEN"))
|
644 |
|
645 |
+
if selected == 'Mental-Analysis':
|
646 |
# Load the Hugging Face model
|
647 |
model_name = "mental/mental-roberta-base"
|
648 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|