File size: 1,096 Bytes
aa1ad8c
 
a5f54ac
 
 
 
1105873
a5f54ac
 
 
 
 
1105873
0914126
a5f54ac
 
1105873
a5f54ac
2bbe30e
a5f54ac
 
 
aa1ad8c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr

def submit_model(model_name, model_description):
    # 这里的逻辑是用来处理模型提交的。
    # 你需要将模型添加到评估队列,并返回提交状态。
    # 这个示例函数只是返回一个确认消息。
    return f"模型 '{model_name}' 已提交评估。描述: {model_description}"

# 创建一个Gradio表单接口
iface = gr.Interface(
    fn=submit_model,  # 提交模型的函数
    inputs=[          # 输入字段
        gr.Textbox(label="模型名称"),
        gr.TextArea(label="模型描述")
    ],
    outputs=[         # 输出字段
        gr.Text(label="提交状态")
    ],
    title="Open MLLM Leaderboard",  # 界面标题
    description="The Open LLM Leaderboard aims to track, rank, and evaluate LLMs and chatbots.",  # 界面描述
    article="Submit a model for automated evaluation on the Open LLM Leaderboard on the 'Submit' page! The leaderboard's backend runs the great EleutherAI Language Model Evaluation Harness - read more details in the 'About' page!"  # 底部的文章或额外信息
)

iface.launch()