Spaces:
Runtime error
Runtime error
back to PIL
Browse files
app.py
CHANGED
@@ -21,8 +21,7 @@ img_df = pd.read_csv('image_data.csv')
|
|
21 |
|
22 |
def url2img(url):
|
23 |
data = requests.get(url, allow_redirects = True).content
|
24 |
-
|
25 |
-
return np.array(io.BytesIO(data))
|
26 |
|
27 |
def find_topk(text):
|
28 |
|
|
|
21 |
|
22 |
def url2img(url):
|
23 |
data = requests.get(url, allow_redirects = True).content
|
24 |
+
return Image.open(io.BytesIO(data))
|
|
|
25 |
|
26 |
def find_topk(text):
|
27 |
|