Spaces:
Sleeping
Sleeping
testcoder-ui
commited on
Commit
·
cbd8bf3
1
Parent(s):
fbabe23
Add LoginButton component for OAuth support
Browse files
app.py
CHANGED
|
@@ -523,12 +523,15 @@ with gr.Blocks(title="Video Model Evaluator") as demo:
|
|
| 523 |
5. 提交评分,数据自动保存
|
| 524 |
""")
|
| 525 |
|
|
|
|
|
|
|
|
|
|
| 526 |
with gr.Row():
|
| 527 |
with gr.Column(scale=1):
|
| 528 |
user_info = gr.Textbox(
|
| 529 |
label="用户信息",
|
| 530 |
interactive=False,
|
| 531 |
-
value="
|
| 532 |
)
|
| 533 |
|
| 534 |
prompt_input = gr.Textbox(
|
|
|
|
| 523 |
5. 提交评分,数据自动保存
|
| 524 |
""")
|
| 525 |
|
| 526 |
+
# 添加 HF 登录按钮(Gradio 6.0 OAuth 支持)
|
| 527 |
+
login_btn = gr.LoginButton()
|
| 528 |
+
|
| 529 |
with gr.Row():
|
| 530 |
with gr.Column(scale=1):
|
| 531 |
user_info = gr.Textbox(
|
| 532 |
label="用户信息",
|
| 533 |
interactive=False,
|
| 534 |
+
value="⏳ 请先登录 Hugging Face 账户"
|
| 535 |
)
|
| 536 |
|
| 537 |
prompt_input = gr.Textbox(
|