Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,8 +78,8 @@ def inference(image):
|
|
78 |
im = get_image(i)
|
79 |
print(im["label"], im["timestamp"])
|
80 |
|
81 |
-
|
82 |
-
|
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
|
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 |
|