ZhengPeng7 commited on
Commit
16e7ea5
·
verified ·
1 Parent(s): 85f9120

Fix a bug in loading the input in tab_batch.

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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))