Manasee27 commited on
Commit
1cf3b9b
·
1 Parent(s): 328c272

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -41,8 +41,12 @@ def predict(image):
41
  results = model([image], size=640)
42
  results1= process_image(image)
43
 
 
 
 
44
 
45
- return results.render()[0], results1
 
46
 
47
 
48
  title = "Detecting objects for elderly and blind"
 
41
  results = model([image], size=640)
42
  results1= process_image(image)
43
 
44
+ width, height = 640, 640
45
+ results_image = Image.fromarray(results.render()[0]).resize((width, height))
46
+ results1_resized = results1.resize((width, height))
47
 
48
+ # return results.render()[0], results1
49
+ return results_image, results1_resized
50
 
51
 
52
  title = "Detecting objects for elderly and blind"