Spaces:
Runtime error
Runtime error
Ubuntu commited on
Commit ·
4ba1c87
1
Parent(s): e30329e
- .ipynb_checkpoints/app-checkpoint.py +1 -1
- app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -104,7 +104,7 @@ def video_identity(video,user_name,class_name,trainortest,ready):
|
|
| 104 |
# preds=str(outputs.logits.softmax(1).argmax(1))
|
| 105 |
# labels=str(data['labels'])
|
| 106 |
|
| 107 |
-
return
|
| 108 |
|
| 109 |
else:
|
| 110 |
capture = cv2.VideoCapture(video)
|
|
|
|
| 104 |
# preds=str(outputs.logits.softmax(1).argmax(1))
|
| 105 |
# labels=str(data['labels'])
|
| 106 |
|
| 107 |
+
return outputs, outputs, preds
|
| 108 |
|
| 109 |
else:
|
| 110 |
capture = cv2.VideoCapture(video)
|
app.py
CHANGED
|
@@ -104,7 +104,7 @@ def video_identity(video,user_name,class_name,trainortest,ready):
|
|
| 104 |
# preds=str(outputs.logits.softmax(1).argmax(1))
|
| 105 |
# labels=str(data['labels'])
|
| 106 |
|
| 107 |
-
return
|
| 108 |
|
| 109 |
else:
|
| 110 |
capture = cv2.VideoCapture(video)
|
|
|
|
| 104 |
# preds=str(outputs.logits.softmax(1).argmax(1))
|
| 105 |
# labels=str(data['labels'])
|
| 106 |
|
| 107 |
+
return outputs, outputs, preds
|
| 108 |
|
| 109 |
else:
|
| 110 |
capture = cv2.VideoCapture(video)
|