Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ def get_name_age(name:str)-> str: #it's import to specify the return type
|
|
| 21 |
|
| 22 |
res = requests.post('https://api.agify.io/', params=payload)
|
| 23 |
data = res.json()
|
|
|
|
| 24 |
age = data["age"]
|
| 25 |
|
| 26 |
except Exception as e:
|
|
|
|
| 21 |
|
| 22 |
res = requests.post('https://api.agify.io/', params=payload)
|
| 23 |
data = res.json()
|
| 24 |
+
print(data)
|
| 25 |
age = data["age"]
|
| 26 |
|
| 27 |
except Exception as e:
|