Spaces:
Running
Running
yangzhitao
commited on
Commit
·
1b55e08
1
Parent(s):
0753044
refactor: update submit button label and improve user ID display in create_submit_tab function for consistency
Browse files- app.py +4 -5
- src/about.py +1 -1
app.py
CHANGED
|
@@ -366,13 +366,11 @@ def create_submit_tab(tab_id: int, demo: gr.Blocks):
|
|
| 366 |
)
|
| 367 |
with gr.Row():
|
| 368 |
gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
|
|
|
|
|
|
|
| 369 |
|
| 370 |
# ========== Login Section (First Step) ==========
|
| 371 |
login_button = gr.LoginButton()
|
| 372 |
-
current_user_display = gr.Markdown(value="Submitter ID: Loading...")
|
| 373 |
-
|
| 374 |
-
with gr.Row():
|
| 375 |
-
gr.Markdown(SUBMISSION_INSTRUCTIONS_TEXT, elem_classes="markdown-text")
|
| 376 |
|
| 377 |
# Function to get current HuggingFace user ID from the visiting user
|
| 378 |
def get_current_user_id(oauth_profile: gr.OAuthProfile | None = None) -> str:
|
|
@@ -665,9 +663,10 @@ def create_submit_tab(tab_id: int, demo: gr.Blocks):
|
|
| 665 |
user_id=user_id,
|
| 666 |
)
|
| 667 |
|
|
|
|
| 668 |
# Create submit button outside form_container so it can be referenced
|
| 669 |
# Initially hidden and disabled (will be shown and enabled when user logs in)
|
| 670 |
-
submit_button = gr.Button("
|
| 671 |
|
| 672 |
# Update user ID and form visibility when page loads or when user logs in
|
| 673 |
def update_user_display(oauth_profile: gr.OAuthProfile | None = None) -> tuple[str, dict, dict]:
|
|
|
|
| 366 |
)
|
| 367 |
with gr.Row():
|
| 368 |
gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
|
| 369 |
+
with gr.Row():
|
| 370 |
+
gr.Markdown(SUBMISSION_INSTRUCTIONS_TEXT, elem_classes="markdown-text")
|
| 371 |
|
| 372 |
# ========== Login Section (First Step) ==========
|
| 373 |
login_button = gr.LoginButton()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 374 |
|
| 375 |
# Function to get current HuggingFace user ID from the visiting user
|
| 376 |
def get_current_user_id(oauth_profile: gr.OAuthProfile | None = None) -> str:
|
|
|
|
| 663 |
user_id=user_id,
|
| 664 |
)
|
| 665 |
|
| 666 |
+
current_user_display = gr.Markdown(value="Submitter ID: Loading...")
|
| 667 |
# Create submit button outside form_container so it can be referenced
|
| 668 |
# Initially hidden and disabled (will be shown and enabled when user logs in)
|
| 669 |
+
submit_button = gr.Button("Submit Eval", variant="primary", interactive=False, visible=False)
|
| 670 |
|
| 671 |
# Update user ID and form visibility when page loads or when user logs in
|
| 672 |
def update_user_display(oauth_profile: gr.OAuthProfile | None = None) -> tuple[str, dict, dict]:
|
src/about.py
CHANGED
|
@@ -82,7 +82,7 @@ Then, you can see the submission form, and fill in the following information:
|
|
| 82 |
7. (Optional) Fill in the **base model name** for **delta** or **adapter** weights. (e.g. `Qwen/Qwen3-VL-8B-Instruct`)
|
| 83 |
8. Check the checkbox of the **benchmark**s to evaluate on, and fill in the **evaluation result value** (e.g. `0.5` for `VSI-bench` `acc`).
|
| 84 |
9. (Optional) Fill in the **commit message** to add extra message about the evaluation.
|
| 85 |
-
10. Click the **[
|
| 86 |
|
| 87 |
Then your evaluation will be submitted, and our team will review it and add it to the leaderboard.
|
| 88 |
""")
|
|
|
|
| 82 |
7. (Optional) Fill in the **base model name** for **delta** or **adapter** weights. (e.g. `Qwen/Qwen3-VL-8B-Instruct`)
|
| 83 |
8. Check the checkbox of the **benchmark**s to evaluate on, and fill in the **evaluation result value** (e.g. `0.5` for `VSI-bench` `acc`).
|
| 84 |
9. (Optional) Fill in the **commit message** to add extra message about the evaluation.
|
| 85 |
+
10. Click the **[Submit Eval]** button to submit the evaluation request.
|
| 86 |
|
| 87 |
Then your evaluation will be submitted, and our team will review it and add it to the leaderboard.
|
| 88 |
""")
|