Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -475,7 +475,7 @@ with block:
|
|
| 475 |
)
|
| 476 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 477 |
# Table 0
|
| 478 |
-
|
| 479 |
"https://huggingface.co/spaces/V-STaR-Bench/V-STaR-LeaderBoard/resolve/main/leaderboard.csv",
|
| 480 |
header=[0, 1] # 告诉 pandas 前两行为表头
|
| 481 |
).map(lambda x: f"{x:.2f}" if isinstance(x, (int, float)) else x)
|
|
@@ -544,7 +544,7 @@ with block:
|
|
| 544 |
|
| 545 |
# 显示 DataFrame
|
| 546 |
data_component = gr.Dataframe(
|
| 547 |
-
value=
|
| 548 |
type="pandas",
|
| 549 |
interactive=False,
|
| 550 |
visible=True,
|
|
|
|
| 475 |
)
|
| 476 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 477 |
# Table 0
|
| 478 |
+
df_raw = pd.read_csv(
|
| 479 |
"https://huggingface.co/spaces/V-STaR-Bench/V-STaR-LeaderBoard/resolve/main/leaderboard.csv",
|
| 480 |
header=[0, 1] # 告诉 pandas 前两行为表头
|
| 481 |
).map(lambda x: f"{x:.2f}" if isinstance(x, (int, float)) else x)
|
|
|
|
| 544 |
|
| 545 |
# 显示 DataFrame
|
| 546 |
data_component = gr.Dataframe(
|
| 547 |
+
value=df_raw,
|
| 548 |
type="pandas",
|
| 549 |
interactive=False,
|
| 550 |
visible=True,
|