Spaces:
Runtime error
Runtime error
Ubuntu
commited on
Commit
·
2f23320
1
Parent(s):
de77f70
- .ipynb_checkpoints/app-checkpoint.py +2 -2
- app.py +2 -2
.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)
|
@@ -136,7 +136,7 @@ demo = gr.Interface(video_identity,
|
|
136 |
gr.Text(),
|
137 |
gr.Text(label='Which set is this? (type train or test)'),
|
138 |
gr.Text(label='Are you ready? (type yes or no)')],
|
139 |
-
outputs=[gr.
|
140 |
gr.Text(),
|
141 |
gr.Text()],
|
142 |
cache_examples=True)
|
|
|
104 |
# preds=str(outputs.logits.softmax(1).argmax(1))
|
105 |
# labels=str(data['labels'])
|
106 |
|
107 |
+
return preds, preds, labels
|
108 |
|
109 |
else:
|
110 |
capture = cv2.VideoCapture(video)
|
|
|
136 |
gr.Text(),
|
137 |
gr.Text(label='Which set is this? (type train or test)'),
|
138 |
gr.Text(label='Are you ready? (type yes or no)')],
|
139 |
+
outputs=[gr.Text(),
|
140 |
gr.Text(),
|
141 |
gr.Text()],
|
142 |
cache_examples=True)
|
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)
|
@@ -136,7 +136,7 @@ demo = gr.Interface(video_identity,
|
|
136 |
gr.Text(),
|
137 |
gr.Text(label='Which set is this? (type train or test)'),
|
138 |
gr.Text(label='Are you ready? (type yes or no)')],
|
139 |
-
outputs=[gr.
|
140 |
gr.Text(),
|
141 |
gr.Text()],
|
142 |
cache_examples=True)
|
|
|
104 |
# preds=str(outputs.logits.softmax(1).argmax(1))
|
105 |
# labels=str(data['labels'])
|
106 |
|
107 |
+
return preds, preds, labels
|
108 |
|
109 |
else:
|
110 |
capture = cv2.VideoCapture(video)
|
|
|
136 |
gr.Text(),
|
137 |
gr.Text(label='Which set is this? (type train or test)'),
|
138 |
gr.Text(label='Are you ready? (type yes or no)')],
|
139 |
+
outputs=[gr.Text(),
|
140 |
gr.Text(),
|
141 |
gr.Text()],
|
142 |
cache_examples=True)
|