thak123 commited on
Commit
12f9f43
·
1 Parent(s): 5483cd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def get_definition_and_image(word):
52
  if not synset_id: return None, None
53
 
54
  # Cofrom PIL import Image mbine the base URL and the synset ID to get a list of image URLs
55
- url = base_url + synset_id.offset()
56
 
57
  # Send a GET request to the URL
58
  response = requests.get(url)
 
52
  if not synset_id: return None, None
53
 
54
  # Cofrom PIL import Image mbine the base URL and the synset ID to get a list of image URLs
55
+ url = base_url + str(synset_id.offset())
56
 
57
  # Send a GET request to the URL
58
  response = requests.get(url)