ajeetkumar01
commited on
Commit
•
55d0133
1
Parent(s):
4588d83
Update app.py
Browse files
app.py
CHANGED
@@ -6,12 +6,16 @@ import re
|
|
6 |
from nltk.corpus import stopwords
|
7 |
import json
|
8 |
|
|
|
9 |
# Set page configuration
|
10 |
st.set_page_config(page_title="Mental Health Classification")
|
11 |
|
12 |
# Page title
|
13 |
st.title("Mental Health Classification")
|
14 |
|
|
|
|
|
|
|
15 |
# Load the tokenizer (make sure the tokenizer file is in the correct path)
|
16 |
def load_tokenizer():
|
17 |
with open('tokenizer.json') as f:
|
|
|
6 |
from nltk.corpus import stopwords
|
7 |
import json
|
8 |
|
9 |
+
|
10 |
# Set page configuration
|
11 |
st.set_page_config(page_title="Mental Health Classification")
|
12 |
|
13 |
# Page title
|
14 |
st.title("Mental Health Classification")
|
15 |
|
16 |
+
# Download stopwords if not already downloaded
|
17 |
+
nltk.download('stopwords')
|
18 |
+
|
19 |
# Load the tokenizer (make sure the tokenizer file is in the correct path)
|
20 |
def load_tokenizer():
|
21 |
with open('tokenizer.json') as f:
|