fix: Libreoffice writer fix (#232)
* Refactor LibreOffice Writer example JSON to support multiple expected and result files for line spacing comparison, enhancing evaluation flexibility. Updated function calls and added additional expected file paths. * Update source link in LibreOffice Writer example JSON to a more relevant help page for inserting tables, improving instructional clarity. --------- Co-authored-by: yuanmengqi <yuanmengqi@mail.ustc.edu.cn>
This commit is contained in:
@@ -52,17 +52,35 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"func": "compare_line_spacing",
|
"func": [
|
||||||
"expected": {
|
"compare_line_spacing",
|
||||||
"type": "cloud_file",
|
"compare_line_spacing"
|
||||||
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/0810415c-bde4-4443-9047-d5f70165a697/Novels_Intro_Packet_Gold.docx",
|
],
|
||||||
"dest": "Novels_Intro_Packet_Gold.docx"
|
"conj": "or",
|
||||||
},
|
"expected": [
|
||||||
"result": {
|
{
|
||||||
"type": "vm_file",
|
"type": "cloud_file",
|
||||||
"path": "/home/user/Desktop/Novels_Intro_Packet.docx",
|
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/0810415c-bde4-4443-9047-d5f70165a697/Novels_Intro_Packet_Gold.docx",
|
||||||
"dest": "Novels_Intro_Packet.docx"
|
"dest": "Novels_Intro_Packet_Gold.docx"
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"type": "cloud_file",
|
||||||
|
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/0810415c-bde4-4443-9047-d5f70165a697/Novels_Intro_Packet_Gold_2.docx",
|
||||||
|
"dest": "Novels_Intro_Packet_Gold_2.docx"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"result": [
|
||||||
|
{
|
||||||
|
"type": "vm_file",
|
||||||
|
"path": "/home/user/Desktop/Novels_Intro_Packet.docx",
|
||||||
|
"dest": "Novels_Intro_Packet.docx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "vm_file",
|
||||||
|
"path": "/home/user/Desktop/Novels_Intro_Packet.docx",
|
||||||
|
"dest": "Novels_Intro_Packet.docx"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"proxy": false
|
"proxy": false
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"id": "66399b0d-8fda-4618-95c4-bfc6191617e9",
|
"id": "66399b0d-8fda-4618-95c4-bfc6191617e9",
|
||||||
"snapshot": "libreoffice_writer",
|
"snapshot": "libreoffice_writer",
|
||||||
"instruction": "Could you help me insert a 7(columns)*5(rows) empty table at the point of cursor?",
|
"instruction": "Could you help me insert a 7(columns)*5(rows) empty table at the point of cursor?",
|
||||||
"source": "https://www.youtube.com/watch?v=l25Evu4ohKg",
|
"source": "https://help.libreoffice.org/latest/en-US/text/swriter/guide/table_insert.html",
|
||||||
"config": [
|
"config": [
|
||||||
{
|
{
|
||||||
"type": "download",
|
"type": "download",
|
||||||
|
|||||||
Reference in New Issue
Block a user