Spaces:
Runtime error
Runtime error
Commit ·
bcb7084
1
Parent(s): 2d02098
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,8 +74,7 @@ def inference(vid):
|
|
| 74 |
plt.ylabel('Score')
|
| 75 |
plt.ylim([0,1])
|
| 76 |
plt.grid()
|
| 77 |
-
|
| 78 |
-
# fig = plt.figure()
|
| 79 |
img_buf = io.BytesIO()
|
| 80 |
img_buf.truncate(0)
|
| 81 |
plt.savefig(img_buf, format='png')
|
|
@@ -83,8 +82,6 @@ def inference(vid):
|
|
| 83 |
|
| 84 |
im = Image.open(img_buf)
|
| 85 |
|
| 86 |
-
# fig.savefig('plot.png')
|
| 87 |
-
# im = Image.open('plot.png')
|
| 88 |
|
| 89 |
res = expit(faces_real_pred.mean())
|
| 90 |
if res >= 0.5:
|
|
|
|
| 74 |
plt.ylabel('Score')
|
| 75 |
plt.ylim([0,1])
|
| 76 |
plt.grid()
|
| 77 |
+
|
|
|
|
| 78 |
img_buf = io.BytesIO()
|
| 79 |
img_buf.truncate(0)
|
| 80 |
plt.savefig(img_buf, format='png')
|
|
|
|
| 82 |
|
| 83 |
im = Image.open(img_buf)
|
| 84 |
|
|
|
|
|
|
|
| 85 |
|
| 86 |
res = expit(faces_real_pred.mean())
|
| 87 |
if res >= 0.5:
|