Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def find_job(city:str, keyword:int)-> str: #it's import to specify the return ty
|
|
46 |
|
47 |
url = f'https://{host}/api/{key}'
|
48 |
headers = {"Content-type": "application/json"}
|
49 |
-
body = '{ "keywords": ' + keyword + ', "location": ' + city + '}'
|
50 |
|
51 |
response = requests.post(url, data=body, headers=headers)
|
52 |
return response.json()['jobs'][0:10]
|
|
|
46 |
|
47 |
url = f'https://{host}/api/{key}'
|
48 |
headers = {"Content-type": "application/json"}
|
49 |
+
body = '{ "keywords": "' + keyword + '", "location": "' + city + '"}'
|
50 |
|
51 |
response = requests.post(url, data=body, headers=headers)
|
52 |
return response.json()['jobs'][0:10]
|