diff --git a/desktop_env/evaluators/metrics/slides.py b/desktop_env/evaluators/metrics/slides.py index 9bbfb38..e83a4a7 100644 --- a/desktop_env/evaluators/metrics/slides.py +++ b/desktop_env/evaluators/metrics/slides.py @@ -165,6 +165,7 @@ def compare_pptx_files(file1_path, file2_path, **options): # compare the content of each slide for slide1, slide2 in zip(prs1.slides, prs2.slides): slide_idx += 1 + print(slide_idx) def get_slide_background_color(slide): background = slide.background if background.fill.background(): diff --git a/evaluation_examples/examples/libreoffice_impress/0a211154-fda0-48d0-9274-eaac4ce5486d.json b/evaluation_examples/examples/libreoffice_impress/0a211154-fda0-48d0-9274-eaac4ce5486d.json index 96955fb..13c449e 100644 --- a/evaluation_examples/examples/libreoffice_impress/0a211154-fda0-48d0-9274-eaac4ce5486d.json +++ b/evaluation_examples/examples/libreoffice_impress/0a211154-fda0-48d0-9274-eaac4ce5486d.json @@ -54,14 +54,14 @@ { "type": "sleep", "parameters": { - "seconds": 0.5 + "seconds": 3 } } ], "func": "compare_pptx_files", "expected": { "type": "cloud_file", - "path": "https://drive.usercontent.google.com/download?id=1W6yRtc3Z6lGBdwvGqoU4CC20TDKw1Pdq&export=download&authuser=0&confirm=t&uuid=f58ee149-1117-41db-b07b-e14e4ca93bd0&at=APZUnTWj50rJEqo6TS_K3hKh1OeT:1708521510910", + "path": "https://drive.usercontent.google.com/download?id=1W6yRtc3Z6lGBdwvGqoU4CC20TDKw1Pdq&export=download&authuser=0&confirm=t&uuid=a20dc92d-9d78-4c32-ad3b-a2fd068fd167&at=APZUnTWUSZoFc5RheJ8QOwadHnjF:1709110061143", "dest": "13_0_Gold.pptx" }, "result": { diff --git a/evaluation_examples/examples/libreoffice_impress/358aa0a7-6677-453f-ae35-e440f004c31e.json b/evaluation_examples/examples/libreoffice_impress/358aa0a7-6677-453f-ae35-e440f004c31e.json index b594213..abb902a 100644 --- a/evaluation_examples/examples/libreoffice_impress/358aa0a7-6677-453f-ae35-e440f004c31e.json +++ b/evaluation_examples/examples/libreoffice_impress/358aa0a7-6677-453f-ae35-e440f004c31e.json @@ -38,7 +38,7 @@ { "type": "sleep", "parameters": { - "seconds": 3 + "seconds": 5 } }, { @@ -61,7 +61,7 @@ "func": "compare_pptx_files", "expected": { "type": "cloud_file", - "path": "https://drive.usercontent.google.com/download?id=1bUCqqJhIuvWUkSxBjjo5O2ud2XN_kGsb&export=download&authuser=0&confirm=t&uuid=def54def-0383-4663-b3c4-2d740bc7904f&at=APZUnTWbv-n_VD2ArRkxCre9-5X1:1707298399387", + "path": "https://drive.usercontent.google.com/download?id=1bUCqqJhIuvWUkSxBjjo5O2ud2XN_kGsb&export=download&authuser=0&confirm=t&uuid=517f7cad-d64b-4120-a27a-24e6294fa67d&at=APZUnTVFietPFWXrfh9EEj9GHyzy:1709125386590", "dest": "note-taking-strategies_Gold.pptx" }, "result": { diff --git a/evaluation_examples/examples/libreoffice_impress/a53f80cd-4a90-4490-8310-097b011433f6.json b/evaluation_examples/examples/libreoffice_impress/a53f80cd-4a90-4490-8310-097b011433f6.json index 0cbc14c..6d675f9 100644 --- a/evaluation_examples/examples/libreoffice_impress/a53f80cd-4a90-4490-8310-097b011433f6.json +++ b/evaluation_examples/examples/libreoffice_impress/a53f80cd-4a90-4490-8310-097b011433f6.json @@ -61,7 +61,7 @@ "func": "compare_pptx_files", "expected": { "type": "cloud_file", - "path": "https://drive.usercontent.google.com/download?id=1MmeszasDfNxJvCRUF9wcALkP9J6Xh3ei&export=download&authuser=0&confirm=t&uuid=927b69e7-f30c-4a8c-8bc2-dfcf87b6488e&at=APZUnTVDYKTOQCGDU-ckFvP9bUXY:1708278495606", + "path": "https://drive.usercontent.google.com/download?id=1MmeszasDfNxJvCRUF9wcALkP9J6Xh3ei&export=download&authuser=0&confirm=t&uuid=ccec2f56-4249-41a7-ad5b-4aacdd8bd2a5&at=APZUnTWcPLfgz0tkizfoHgh-fWWO:1709111919990", "dest": "21_0_Gold.pptx" }, "result": { diff --git a/evaluation_examples/examples/libreoffice_impress/a669ef01-ded5-4099-9ea9-25e99b569840.json b/evaluation_examples/examples/libreoffice_impress/a669ef01-ded5-4099-9ea9-25e99b569840.json index 25c8780..47d26c0 100644 --- a/evaluation_examples/examples/libreoffice_impress/a669ef01-ded5-4099-9ea9-25e99b569840.json +++ b/evaluation_examples/examples/libreoffice_impress/a669ef01-ded5-4099-9ea9-25e99b569840.json @@ -1,7 +1,7 @@ { "id": "a669ef01-ded5-4099-9ea9-25e99b569840", "snapshot": "libreoffice_impress", - "instruction": "I want to do something like the following on Page 3 of the current LibreOffice Impress file:\n\n- Main idea\n- Sub topics\n - first point of sub topics\n - second point of sub topics\n continuation of the sub topics\n\nthe \"continuation of the sub topics\" is indented the same as the first line of the second item, but it's essentially a second paragraph (I wouldn't mind a nested subitems mechanism, but LO Impress doesn't work that way) with an indentation.\n\nCould you help me with it?", + "instruction": "I want to do something like the following on Page 3 of the current LibreOffice Impress file: make the \"continuation of the sub topics\" indented the same as \"main idea\" and \"sub topics\" without a bullet in front of it. Could you help me with it?", "source": "https://superuser.com/questions/1628656/in-libreoffice-impress-how-can-i-have-a-bullet-indentation-no-bullet-item", "config": [ { @@ -23,13 +23,13 @@ }, { "type": "execute", - "parameters": { - "command": [ - "python", - "-c", - "import pyautogui; import time; pyautogui.click(960, 540); time.sleep(0.5);" - ] - } + "parameters": { + "command": [ + "python", + "-c", + "import pyautogui; import time; pyautogui.click(960, 540); time.sleep(0.5);" + ] + } } ], "trajectory": "trajectories/", @@ -80,4 +80,4 @@ "dest": "Writing-Outlines.pptx" } } -} +} \ No newline at end of file diff --git a/evaluation_examples/examples/libreoffice_impress/c82632a4-56b6-4db4-9dd1-3820ee3388e4.json b/evaluation_examples/examples/libreoffice_impress/c82632a4-56b6-4db4-9dd1-3820ee3388e4.json index 5512485..7fe42c8 100644 --- a/evaluation_examples/examples/libreoffice_impress/c82632a4-56b6-4db4-9dd1-3820ee3388e4.json +++ b/evaluation_examples/examples/libreoffice_impress/c82632a4-56b6-4db4-9dd1-3820ee3388e4.json @@ -72,7 +72,7 @@ "func": "compare_pptx_files", "expected": { "type": "cloud_file", - "path": "https://drive.usercontent.google.com/download?id=1yMulvG6Mc0Ze3W4WweXKHGtw1qBtA4N0&export=download&authuser=0&confirm=t&uuid=85461acd-2d84-45dc-a2ca-0b937e0c28af&at=APZUnTVvM1yMPvjXgxN3e8Zrywly:1708090126056", + "path": "https://drive.usercontent.google.com/download?id=1V2MOVWtEf-uqzfddo8oRy43O-oBBO21-&export=download&authuser=0&confirm=t&uuid=740c2ac2-3a2d-47fe-bfd5-cd9d6162e3a0&at=APZUnTUR7n8SNB6bfA4XI_-XxuFW:1709112952270", "dest": "31_2_Gold.pptx" }, "result": {