Spaces:
Runtime error
Runtime error
Fix a bug in loading the input in tab_batch.
Browse files
app.py
CHANGED
@@ -92,7 +92,6 @@ def predict(images, resolution, weights_file):
|
|
92 |
if os.path.isfile(image_src):
|
93 |
image = np.array(Image.open(image_src))
|
94 |
else:
|
95 |
-
image = np.array(Image.open(image_src))
|
96 |
response = requests.get(image_src)
|
97 |
image_data = BytesIO(response.content)
|
98 |
image = np.array(Image.open(image_data))
|
|
|
92 |
if os.path.isfile(image_src):
|
93 |
image = np.array(Image.open(image_src))
|
94 |
else:
|
|
|
95 |
response = requests.get(image_src)
|
96 |
image_data = BytesIO(response.content)
|
97 |
image = np.array(Image.open(image_data))
|