Spaces:
Sleeping
Sleeping
Commit
·
07ca38c
1
Parent(s):
e7d96e2
Update app.py
Browse files
app.py
CHANGED
@@ -85,16 +85,16 @@ def build_interface(iter=3, data_folder='./videos'):
|
|
85 |
"videos/rl-video-episode-0.mp4")
|
86 |
right_video_path = os.path.join(os.path.dirname(__file__),
|
87 |
"videos/rl-video-episode-1.mp4")
|
88 |
-
left = gr.PlayableVideo(left_video_path)
|
89 |
-
right = gr.PlayableVideo(right_video_path)
|
90 |
else:
|
91 |
left_video_path = os.path.join(os.path.dirname(__file__),
|
92 |
"videos/rl-video-episode-0.gif")
|
93 |
right_video_path = os.path.join(os.path.dirname(__file__),
|
94 |
"videos/rl-video-episode-1.gif")
|
95 |
-
left = gr.Image(left_video_path, shape=(1024, 768))
|
96 |
# right = gr.Image(right_video_path).style(height=768, width=1024)
|
97 |
-
right = gr.Image(right_video_path)
|
98 |
|
99 |
btn1 = gr.Button("Replay")
|
100 |
user_choice = gr.Radio(["Left", "Right", "Not Sure"], label="Which one is your favorite?")
|
|
|
85 |
"videos/rl-video-episode-0.mp4")
|
86 |
right_video_path = os.path.join(os.path.dirname(__file__),
|
87 |
"videos/rl-video-episode-1.mp4")
|
88 |
+
left = gr.PlayableVideo(left_video_path, label="left_video")
|
89 |
+
right = gr.PlayableVideo(right_video_path, label="right_video")
|
90 |
else:
|
91 |
left_video_path = os.path.join(os.path.dirname(__file__),
|
92 |
"videos/rl-video-episode-0.gif")
|
93 |
right_video_path = os.path.join(os.path.dirname(__file__),
|
94 |
"videos/rl-video-episode-1.gif")
|
95 |
+
left = gr.Image(left_video_path, shape=(1024, 768), label="left_video")
|
96 |
# right = gr.Image(right_video_path).style(height=768, width=1024)
|
97 |
+
right = gr.Image(right_video_path, label="right_video")
|
98 |
|
99 |
btn1 = gr.Button("Replay")
|
100 |
user_choice = gr.Radio(["Left", "Right", "Not Sure"], label="Which one is your favorite?")
|