Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|