Arafath10 commited on
Commit
aa43a84
1 Parent(s): 23590ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -216,11 +216,12 @@ def greet(name1):
216
  name = name1.lower()
217
 
218
  dictionary=PyDictionary()
 
219
 
220
  try:
221
- return "Noun :"+ str(dictionary.meaning(name)['Noun']) + "\nVerb :"+ str(dictionary.meaning(name)['Verb'])
222
  except :
223
- return dictionary.meaning(name)
224
 
225
  if "who are you" in name or "what is you" in name or "your name" in name or"who r u" in name:
226
 
 
216
  name = name1.lower()
217
 
218
  dictionary=PyDictionary()
219
+ dic = dictionary.meaning(name)
220
 
221
  try:
222
+ return "Noun :"+ str(dic['Noun']) + "\nVerb :"+ str(dic['Verb'])
223
  except :
224
+ return dic
225
 
226
  if "who are you" in name or "what is you" in name or "your name" in name or"who r u" in name:
227