fix ChatGLM lm_head #494
This commit is contained in:
1 parent
20a29297b1
commit
d019956808
3 files changed
+12
-8
No files matched your search
@@ -45,7 +45,7 @@ def create_eval_tab(top_elems: Dict[str, "Component"], runner: "Runner") -> Dict
|
||||
with gr.Box():
|
||||
output_box = gr.Markdown()
|
||||
|
||||
input_list = [
|
||||
input_components = [
|
||||
top_elems["lang"],
|
||||
top_elems["model_name"],
|
||||
top_elems["checkpoints"],
|
||||
@@ -62,13 +62,13 @@ def create_eval_tab(top_elems: Dict[str, "Component"], runner: "Runner") -> Dict
|
||||
predict
|
||||
]
|
||||
|
||||
output_list = [
|
||||
output_components = [
|
||||
output_box,
|
||||
process_bar
|
||||
]
|
||||
|
||||
cmd_preview_btn.click(runner.preview_eval, input_list, output_list)
|
||||
start_btn.click(runner.run_eval, input_list, output_list)
|
||||
cmd_preview_btn.click(runner.preview_eval, input_components, output_components)
|
||||
start_btn.click(runner.run_eval, input_components, output_components)
|
||||
stop_btn.click(runner.set_abort, queue=False)
|
||||
|
||||
return dict(
|
||||
|
||||
Reference in new issue
Block a user