VasudevaK commited on
Commit
368c082
1 Parent(s): d5c3357

tuned the model

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +1 -2
app.py CHANGED
@@ -74,6 +74,7 @@ def LemNormalize(text):
74
  return LemTokens(nltk.word_tokenize(text.lower().translate(remove_punct_dict)))
75
 
76
  def NLTK(input):
 
77
  f = open('corpus.txt', errors='strict')
78
  data = f.read()
79
  data = data.lower()
@@ -115,8 +116,7 @@ def generator(input=None):
115
  else:
116
  out1 = NLTK("Hi, what's the matter")
117
  if(out1):
118
- for out in out1:
119
- response.append(out)
120
 
121
  out2 = pyjokes.get_joke(language='en', category='all')
122
  if(out2):
 
74
  return LemTokens(nltk.word_tokenize(text.lower().translate(remove_punct_dict)))
75
 
76
  def NLTK(input):
77
+ return None
78
  f = open('corpus.txt', errors='strict')
79
  data = f.read()
80
  data = data.lower()
 
116
  else:
117
  out1 = NLTK("Hi, what's the matter")
118
  if(out1):
119
+ response.append(out)
 
120
 
121
  out2 = pyjokes.get_joke(language='en', category='all')
122
  if(out2):
requirements.txt CHANGED
@@ -4,5 +4,4 @@ nltk==3.7
4
  gradio==3.2
5
  pyjokes==0.6.0
6
  pandas==1.3.5
7
- numpy==1.21.6
8
- string
 
4
  gradio==3.2
5
  pyjokes==0.6.0
6
  pandas==1.3.5
7
+ numpy==1.21.6