Spaces:
Build error
Build error
Ubuntu
commited on
Commit
·
d3431d4
1
Parent(s):
a51300a
- .ipynb_checkpoints/app-checkpoint.py +1 -1
- app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -20,7 +20,7 @@ def video_identity(filepath):
|
|
| 20 |
img=cv2.imread('train/frame_0')
|
| 21 |
return img
|
| 22 |
demo = gr.Interface(video_identity,
|
| 23 |
-
gr.inputs.Video(
|
| 24 |
gr.inputs.Image(),
|
| 25 |
cache_examples=True)
|
| 26 |
demo.launch(debug=True)
|
|
|
|
| 20 |
img=cv2.imread('train/frame_0')
|
| 21 |
return img
|
| 22 |
demo = gr.Interface(video_identity,
|
| 23 |
+
gr.inputs.Video(source='upload'),
|
| 24 |
gr.inputs.Image(),
|
| 25 |
cache_examples=True)
|
| 26 |
demo.launch(debug=True)
|
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def video_identity(filepath):
|
|
| 20 |
img=cv2.imread('train/frame_0')
|
| 21 |
return img
|
| 22 |
demo = gr.Interface(video_identity,
|
| 23 |
-
gr.inputs.Video(
|
| 24 |
gr.inputs.Image(),
|
| 25 |
cache_examples=True)
|
| 26 |
demo.launch(debug=True)
|
|
|
|
| 20 |
img=cv2.imread('train/frame_0')
|
| 21 |
return img
|
| 22 |
demo = gr.Interface(video_identity,
|
| 23 |
+
gr.inputs.Video(source='upload'),
|
| 24 |
gr.inputs.Image(),
|
| 25 |
cache_examples=True)
|
| 26 |
demo.launch(debug=True)
|