Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
import nltk
|
3 |
import os
|
4 |
import json
|
@@ -11,6 +10,7 @@ from nltk.stem import PorterStemmer, WordNetLemmatizer
|
|
11 |
|
12 |
nltk.download("punkt")
|
13 |
nltk.download("wordnet")
|
|
|
14 |
|
15 |
stop_words = {"a", "is", "the", "of", "all", "and", "to", "can", "be", "as", "once", "for", "at", "am", "are", "has", "have", "had", "up", "his", "her", "in", "on", "no", "we", "do"}
|
16 |
|
@@ -141,4 +141,4 @@ iface = gr.Interface(
|
|
141 |
outputs="text",
|
142 |
title="Information Retrieval Chatbot",
|
143 |
)
|
144 |
-
iface.launch()
|
|
|
|
|
1 |
import nltk
|
2 |
import os
|
3 |
import json
|
|
|
10 |
|
11 |
nltk.download("punkt")
|
12 |
nltk.download("wordnet")
|
13 |
+
nltk.download("punkt_tab")
|
14 |
|
15 |
stop_words = {"a", "is", "the", "of", "all", "and", "to", "can", "be", "as", "once", "for", "at", "am", "are", "has", "have", "had", "up", "his", "her", "in", "on", "no", "we", "do"}
|
16 |
|
|
|
141 |
outputs="text",
|
142 |
title="Information Retrieval Chatbot",
|
143 |
)
|
144 |
+
iface.launch()
|