phspoden commited on
Commit
d730727
·
1 Parent(s): 7570cb2

Fixed issue in get_random_name tool parameter

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def get_random_name(nationality: str) -> str:
31
  """
32
  try:
33
  url = 'https://api.fbi.gov/wanted/v1/list'
34
- params = {'race': nationality}
35
  response = requests.get(url, params= params)
36
 
37
  if response.status_code == 200:
 
31
  """
32
  try:
33
  url = 'https://api.fbi.gov/wanted/v1/list'
34
+ params = {'nationality': nationality}
35
  response = requests.get(url, params= params)
36
 
37
  if response.status_code == 200: