Arafath10 commited on
Commit
23590ea
·
1 Parent(s): 59a037f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -217,9 +217,10 @@ def greet(name1):
217
 
218
  dictionary=PyDictionary()
219
 
220
-
221
- return "Noun :"+ str(dictionary.meaning(name)['Noun']) + "\nVerb :"+ str(dictionary.meaning(name)['Verb'])
222
-
 
223
 
224
  if "who are you" in name or "what is you" in name or "your name" in name or"who r u" in name:
225
 
 
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