Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines3456789101112131415161718192021222324252627282930312 unmodified linesnltk.download('wordnet')from nltk.corpus import stopwordsfrom nltk.stem.wordnet import WordNetLemmatizerimport stringimport gensimfrom gensim.utils import simple_preprocessimport pickleimport reimport pyLDAvisimport pyLDAvis.gensimimport matplotlib.pyplot as pltimport pandas as pdimport refrom pprint import pprintimport gensim.corpora as corporaimport spacyimport datetimeimport osimport gradio as grdef preprocess_response(response):# Remove punctuationresponse = re.sub(r'[,\.!?]', '', response)2 unmodified lines345678910111213141516171819202122232425262728292 unmodified linesnltk.download('wordnet')from nltk.corpus import stopwordsfrom nltk.stem.wordnet import WordNetLemmatizerimport gensimfrom gensim.utils import simple_preprocessimport reimport pyLDAvisimport pyLDAvis.gensimimport pandas as pdimport reimport gensim.corpora as corporaimport spacyimport osimport gradio as grimport spacy.clispacy.cli.download("en_core_web_sm")def preprocess_response(response):# Remove punctuationresponse = re.sub(r'[,\.!?]', '', response)
app.py+4-6