ezamorag commited on
Commit
452ee12
·
1 Parent(s): 4946aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -27,7 +27,6 @@ def upload2aws(img_array):
27
  return None
28
 
29
  def send2api(input_img, api_url):
30
- upload2aws(input_img)
31
  buf = io.BytesIO()
32
  plt.imsave(buf, input_img, format='jpg')
33
  files = {'image': buf.getvalue()}
@@ -138,6 +137,8 @@ def display_detectionsandcountings_directcounter(img_array, countings, prob_th=0
138
  return img, text
139
 
140
  def testing_countingid(input_img):
 
 
141
  api_url = 'http://countingid-test.us-east-1.elasticbeanstalk.com/predict'
142
  response = send2api(input_img, api_url)
143
  c_cnames = response['countings_cnames']
 
27
  return None
28
 
29
  def send2api(input_img, api_url):
 
30
  buf = io.BytesIO()
31
  plt.imsave(buf, input_img, format='jpg')
32
  files = {'image': buf.getvalue()}
 
137
  return img, text
138
 
139
  def testing_countingid(input_img):
140
+ upload2aws(input_img)
141
+
142
  api_url = 'http://countingid-test.us-east-1.elasticbeanstalk.com/predict'
143
  response = send2api(input_img, api_url)
144
  c_cnames = response['countings_cnames']