This commit is contained in:
hailin 2025-07-08 10:04:02 +08:00
parent 35c0f5b345
commit d2bc782264
1 changed files with 0 additions and 7 deletions

View File

@ -12,10 +12,7 @@ def run_eval(inputs, native, other, outputs):
return result return result
with gr.Blocks(title="EvalScope 全功能界面") as demo: with gr.Blocks(title="EvalScope 全功能界面") as demo:
gr.Markdown("## EvalScope 功能选择平台")
with gr.Group(): with gr.Group():
gr.Markdown("### INPUT 输入区")
with gr.Row(): with gr.Row():
input_choices = gr.CheckboxGroup( input_choices = gr.CheckboxGroup(
label="选择输入源", label="选择输入源",
@ -25,7 +22,6 @@ with gr.Blocks(title="EvalScope 全功能界面") as demo:
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():
with gr.Group(): with gr.Group():
gr.Markdown("### NATIVE 本地功能区")
native_choices = gr.CheckboxGroup( native_choices = gr.CheckboxGroup(
label="启用本地模块", label="启用本地模块",
choices=["Model Adapter", "Data Adapter", "Evaluator", "Perf Monitor"] choices=["Model Adapter", "Data Adapter", "Evaluator", "Perf Monitor"]
@ -33,14 +29,12 @@ with gr.Blocks(title="EvalScope 全功能界面") as demo:
with gr.Column(): with gr.Column():
with gr.Group(): with gr.Group():
gr.Markdown("### OTHER 其他功能区")
other_choices = gr.CheckboxGroup( other_choices = gr.CheckboxGroup(
label="启用外部后端", label="启用外部后端",
choices=["OpenCompass", "VLMEvalKit", "RAGAS", "MTEB/CMTEB"] choices=["OpenCompass", "VLMEvalKit", "RAGAS", "MTEB/CMTEB"]
) )
with gr.Group(): with gr.Group():
gr.Markdown("### OUTPUT 输出区")
with gr.Row(): with gr.Row():
output_choices = gr.CheckboxGroup( output_choices = gr.CheckboxGroup(
label="输出形式", label="输出形式",
@ -54,4 +48,3 @@ with gr.Blocks(title="EvalScope 全功能界面") as demo:
if __name__ == '__main__': if __name__ == '__main__':
demo.launch(server_name="0.0.0.0", server_port=7900) demo.launch(server_name="0.0.0.0", server_port=7900)