Upload 2 files
Browse files
app.py
CHANGED
@@ -251,12 +251,12 @@ with block:
|
|
251 |
with gr.Row():
|
252 |
gr.Markdown("The following is optional and will be synced to [GitHub](https://github.com/haoyi-duan/WorldScore/blob/main/README.md#world-generation-models-info)", elem_classes="markdown-text")
|
253 |
with gr.Row():
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
with gr.Column():
|
261 |
input_file = gr.components.File(label = "Click to Upload a JSON File", file_count="single", file_types=[".json"])
|
262 |
submit_button = gr.Button("Submit Eval")
|
@@ -287,29 +287,30 @@ with block:
|
|
287 |
)
|
288 |
|
289 |
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
|
|
|
|
|
|
|
|
295 |
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
interactive=False,
|
306 |
-
visible=True,
|
307 |
-
wrap=True
|
308 |
-
)
|
309 |
|
310 |
-
|
311 |
|
312 |
-
|
|
|
313 |
data_run = gr.Button("Refresh")
|
314 |
data_run.click(
|
315 |
refresh_data,
|
|
|
251 |
with gr.Row():
|
252 |
gr.Markdown("The following is optional and will be synced to [GitHub](https://github.com/haoyi-duan/WorldScore/blob/main/README.md#world-generation-models-info)", elem_classes="markdown-text")
|
253 |
with gr.Row():
|
254 |
+
release_time = gr.Textbox(label="Version", placeholder="2025.03.29")
|
255 |
+
model_resolution = gr.Textbox(label="Resolution", placeholder="WidthxHeight")
|
256 |
+
model_length = gr.Textbox(label="Video Length (s)", placeholder="float")
|
257 |
+
model_fps = gr.Textbox(label="FPS", placeholder="int")
|
258 |
+
model_frame = gr.Textbox(label="Frame Number", placeholder="int")
|
259 |
+
model_link_optional = gr.Textbox(label="Link", placeholder='optional')
|
260 |
with gr.Column():
|
261 |
input_file = gr.components.File(label = "Click to Upload a JSON File", file_count="single", file_types=[".json"])
|
262 |
submit_button = gr.Button("Submit Eval")
|
|
|
287 |
)
|
288 |
|
289 |
|
290 |
+
def refresh_data():
|
291 |
+
model_type_filter.value = DEFAULT_MODEL_TYPE
|
292 |
+
ability_filter.value = DEFAULT_ABILITY
|
293 |
+
sort_by_filter.value = DEFAULT_INFO[0]
|
294 |
+
df = get_baseline_df()
|
295 |
+
|
296 |
+
df = df[df['Model Type'].isin(model_type_filter.value)]
|
297 |
+
df = df[df['Ability'].isin(ability_filter.value)]
|
298 |
+
df = df.sort_values(by=sort_by_filter.value, ascending=False)
|
299 |
|
300 |
+
data_component = gr.Dataframe(
|
301 |
+
value=df,
|
302 |
+
headers=COLUMN_NAMES,
|
303 |
+
type="pandas",
|
304 |
+
datatype=DATA_TITILE_TYPE,
|
305 |
+
interactive=False,
|
306 |
+
visible=True,
|
307 |
+
wrap=True
|
308 |
+
)
|
|
|
|
|
|
|
|
|
309 |
|
310 |
+
return data_component, model_type_filter, ability_filter, sort_by_filter
|
311 |
|
312 |
+
with gr.Row(elem_classes="container"):
|
313 |
+
with gr.Column():
|
314 |
data_run = gr.Button("Refresh")
|
315 |
data_run.click(
|
316 |
refresh_data,
|