nibbz2024 commited on
Commit
7acad9d
1 Parent(s): fa7d311

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -3,29 +3,27 @@ nltk.download('stopwords')
3
  nltk.download('wordnet')
4
  from nltk.corpus import stopwords
5
  from nltk.stem.wordnet import WordNetLemmatizer
6
- import string
7
 
8
  import gensim
9
  from gensim.utils import simple_preprocess
10
 
11
- import pickle
12
  import re
13
  import pyLDAvis
14
  import pyLDAvis.gensim
15
 
16
- import matplotlib.pyplot as plt
17
  import pandas as pd
18
 
19
  import re
20
- from pprint import pprint
21
  import gensim.corpora as corpora
22
  import spacy
23
-
24
- import datetime
25
  import os
26
 
27
  import gradio as gr
28
 
 
 
 
 
29
  def preprocess_response(response):
30
  # Remove punctuation
31
  response = re.sub(r'[,\.!?]', '', response)
 
3
  nltk.download('wordnet')
4
  from nltk.corpus import stopwords
5
  from nltk.stem.wordnet import WordNetLemmatizer
 
6
 
7
  import gensim
8
  from gensim.utils import simple_preprocess
9
 
 
10
  import re
11
  import pyLDAvis
12
  import pyLDAvis.gensim
13
 
 
14
  import pandas as pd
15
 
16
  import re
 
17
  import gensim.corpora as corpora
18
  import spacy
 
 
19
  import os
20
 
21
  import gradio as gr
22
 
23
+
24
+ import spacy.cli
25
+ spacy.cli.download("en_core_web_sm")
26
+
27
  def preprocess_response(response):
28
  # Remove punctuation
29
  response = re.sub(r'[,\.!?]', '', response)