Ubuntu commited on
Commit
64dfa6f
·
1 Parent(s): 4540774
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +2 -2
  2. app.py +2 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -137,8 +137,8 @@ def video_identity(video,user_name,class_name,trainortest,ready):
137
  frameNr = frameNr+10
138
 
139
  img=cv2.imread(class_d+'/frame_0.jpg')
140
-
141
- return img, trainortest, class_d
142
  demo = gr.Interface(video_identity,
143
  inputs=[gr.Video(source='upload'),
144
  gr.Text(),
 
137
  frameNr = frameNr+10
138
 
139
  img=cv2.imread(class_d+'/frame_0.jpg')
140
+ a=str(transformers.__version__)
141
+ return img, a, class_d
142
  demo = gr.Interface(video_identity,
143
  inputs=[gr.Video(source='upload'),
144
  gr.Text(),
app.py CHANGED
@@ -137,8 +137,8 @@ def video_identity(video,user_name,class_name,trainortest,ready):
137
  frameNr = frameNr+10
138
 
139
  img=cv2.imread(class_d+'/frame_0.jpg')
140
-
141
- return img, trainortest, class_d
142
  demo = gr.Interface(video_identity,
143
  inputs=[gr.Video(source='upload'),
144
  gr.Text(),
 
137
  frameNr = frameNr+10
138
 
139
  img=cv2.imread(class_d+'/frame_0.jpg')
140
+ a=str(transformers.__version__)
141
+ return img, a, class_d
142
  demo = gr.Interface(video_identity,
143
  inputs=[gr.Video(source='upload'),
144
  gr.Text(),