Update app.py
Browse files
app.py
CHANGED
|
@@ -217,9 +217,10 @@ def greet(name1):
|
|
| 217 |
|
| 218 |
dictionary=PyDictionary()
|
| 219 |
|
| 220 |
-
|
| 221 |
-
|
| 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 |
|