fcernafukuzaki commited on
Commit
7cf713e
1 Parent(s): 44f55c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -45,7 +45,9 @@ class YOLODetect():
45
  return self.results
46
 
47
  def show(self):
 
48
  render = None #render_result(model=self.modelo, image=self.source, result=self.results[0])
 
49
  return render
50
 
51
  def to_json(self):
 
45
  return self.results
46
 
47
  def show(self):
48
+ results = self.results[0]
49
  render = None #render_result(model=self.modelo, image=self.source, result=self.results[0])
50
+ render = Image.open(results.path)
51
  return render
52
 
53
  def to_json(self):