Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
•
56d7879
1
Parent(s):
c0d1687
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,13 @@ import os
|
|
3 |
from torchvision.io import read_video,write_video
|
4 |
def video_identity(video):
|
5 |
video, _, _ = read_video(video, output_format="TCHW")
|
6 |
-
return video
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
vid = gr.Video()
|
10 |
vid_out = gr.Video()
|
11 |
text = gr.Textbox()
|
12 |
-
vid.upload(fn = video_identity, inputs = [vid], outputs=[
|
13 |
# demo = gr.Interface(video_identity,
|
14 |
# gr.Video(),
|
15 |
# "playable_video",
|
|
|
3 |
from torchvision.io import read_video,write_video
|
4 |
def video_identity(video):
|
5 |
video, _, _ = read_video(video, output_format="TCHW")
|
6 |
+
return type(video)
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
vid = gr.Video()
|
10 |
vid_out = gr.Video()
|
11 |
text = gr.Textbox()
|
12 |
+
vid.upload(fn = video_identity, inputs = [vid], outputs=[text])
|
13 |
# demo = gr.Interface(video_identity,
|
14 |
# gr.Video(),
|
15 |
# "playable_video",
|