eybro commited on
Commit
eb1decc
·
verified ·
1 Parent(s): d5f4db1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -78,8 +78,8 @@ def inference(image):
78
  im = get_image(i)
79
  print(im["label"], im["timestamp"])
80
 
81
- #result_image = get_image(top4[0])
82
- #result = f"{result_image['label']} {result_image['timestamp']}"
83
 
84
  n=2
85
  plt.figure(figsize=(8, 8))
@@ -99,7 +99,7 @@ def inference(image):
99
  ax.get_xaxis().set_visible(False)
100
  ax.get_yaxis().set_visible(False)
101
 
102
- return None
103
 
104
 
105
 
 
78
  im = get_image(i)
79
  print(im["label"], im["timestamp"])
80
 
81
+ result_image = get_image(top4[0])
82
+ result = f"{result_image['label']} {result_image['timestamp']}"
83
 
84
  n=2
85
  plt.figure(figsize=(8, 8))
 
99
  ax.get_xaxis().set_visible(False)
100
  ax.get_yaxis().set_visible(False)
101
 
102
+ return result
103
 
104
 
105