Spaces:
Sleeping
Sleeping
Fixed issue in get_random_name tool parameter
Browse files
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 = {'
|
| 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:
|