Jack Monas commited on
Commit
f5c9284
·
1 Parent(s): 5a23ac8
Files changed (1) hide show
  1. app.py +19 -17
app.py CHANGED
@@ -77,23 +77,6 @@ def main():
77
  "Welcome to the World Model Challenge. This platform hosts three challenges "
78
  "designed to advance research in world models for robotics: Compression, Sampling, and Evaluation."
79
  )
80
- gif_folder = "assets/v1.0"
81
-
82
- # Get all GIF file paths from the folder, sorted by name
83
- gif_paths = glob.glob(os.path.join(gif_folder, "*.gif"))
84
- random.shuffle(gif_paths)
85
-
86
- # Display 4 GIFs per row
87
- for i in range(0, 16, 4):
88
- # Slice out a batch of 4 GIFs
89
- row_gifs = gif_paths[i:i+4]
90
-
91
- # Create columns for this row
92
- cols = st.columns(len(row_gifs))
93
-
94
- # Display each GIF in its own column
95
- for col, gif_path in zip(cols, row_gifs):
96
- col.image(gif_path, use_container_width=True)
97
 
98
 
99
  st.markdown("---")
@@ -142,7 +125,26 @@ def main():
142
  "tokenizes the raw video sequences generated using the NVIDIA Cosmos Tokenizer. This compact representation of the raw data "
143
  "is optimal for the compression challenge and is released under the Apache 2.0 license.\n\n"
144
  )
 
 
 
 
 
 
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  st.markdown("---")
147
 
148
 
 
77
  "Welcome to the World Model Challenge. This platform hosts three challenges "
78
  "designed to advance research in world models for robotics: Compression, Sampling, and Evaluation."
79
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
 
82
  st.markdown("---")
 
125
  "tokenizes the raw video sequences generated using the NVIDIA Cosmos Tokenizer. This compact representation of the raw data "
126
  "is optimal for the compression challenge and is released under the Apache 2.0 license.\n\n"
127
  )
128
+
129
+ gif_folder = "assets/v1.0"
130
+
131
+ # Get all GIF file paths from the folder, sorted by name
132
+ gif_paths = glob.glob(os.path.join(gif_folder, "*.gif"))
133
+ random.shuffle(gif_paths)
134
 
135
+ # Display 4 GIFs per row
136
+ for i in range(0, 16, 4):
137
+ # Slice out a batch of 4 GIFs
138
+ row_gifs = gif_paths[i:i+4]
139
+
140
+ # Create columns for this row
141
+ cols = st.columns(len(row_gifs))
142
+
143
+ # Display each GIF in its own column
144
+ for col, gif_path in zip(cols, row_gifs):
145
+ col.image(gif_path, use_container_width=True)
146
+
147
+
148
  st.markdown("---")
149
 
150