Ubuntu commited on
Commit
2cd5985
·
1 Parent(s): 67457af
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +1 -1
  2. app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -30,7 +30,7 @@ def video_identity(video,user_name,class_name):
30
 
31
  img=cv2.imread(class_d+'/frame_0.jpg')
32
 
33
- return img, text
34
  demo = gr.Interface(video_identity,
35
  inputs=[gr.Video(source='upload'),
36
  gr.Text(),
 
30
 
31
  img=cv2.imread(class_d+'/frame_0.jpg')
32
 
33
+ return img, class_d
34
  demo = gr.Interface(video_identity,
35
  inputs=[gr.Video(source='upload'),
36
  gr.Text(),
app.py CHANGED
@@ -30,7 +30,7 @@ def video_identity(video,user_name,class_name):
30
 
31
  img=cv2.imread(class_d+'/frame_0.jpg')
32
 
33
- return img, text
34
  demo = gr.Interface(video_identity,
35
  inputs=[gr.Video(source='upload'),
36
  gr.Text(),
 
30
 
31
  img=cv2.imread(class_d+'/frame_0.jpg')
32
 
33
+ return img, class_d
34
  demo = gr.Interface(video_identity,
35
  inputs=[gr.Video(source='upload'),
36
  gr.Text(),