LuisBlanche commited on
Commit
16c0408
·
verified ·
1 Parent(s): 463130e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def name_information(name: str)-> str: #it's import to specify the return type
19
  """
20
  results = nd.search(name)
21
  first_name = results["first_name"]
22
- first_name_top_countries =[k for k first_name["country"]]
23
  if first_name["gender"]["male"] > 0.6:
24
  first_name_gender = "male"
25
  elif first_name["gender"]["female"] > 0.6:
 
19
  """
20
  results = nd.search(name)
21
  first_name = results["first_name"]
22
+ first_name_top_countries = ", ".join([k for k in first_name["country"].keys()])
23
  if first_name["gender"]["male"] > 0.6:
24
  first_name_gender = "male"
25
  elif first_name["gender"]["female"] > 0.6: