fix some multi_apps task (#243)

* fix chrome

* fix: fix proxy setup

* feat&fix: add proxy support in setup and remove hardcoded proxy from example

* fix tasks

* fix chrome finished

* fix

* clean chrome_fix code

* clean chrome_fix code

* fix chrome 2888b4e6-5b47-4b57-8bf5-c73827890774

* fix multiapps

* fix chrome 2888b4e6-5b47-4b57-8bf5-c73827890774

* fix some multi_apps tasks

* fix some multi_apps tasks

---------

Co-authored-by: adlsdztony <zzl0712@connect.hku.hk>
This commit is contained in:
Yuan Mengqi
2025-07-08 18:59:00 +08:00
committed by GitHub
parent b6d9a804fa
commit 093679b90d
7 changed files with 26 additions and 9 deletions

View File

@@ -87,6 +87,7 @@ def compare_docx_files(file1, file2, **options):
ignore_order = options.get('ignore_order', False)
content_only = options.get('content_only', False)
fuzzy_match = options.get('fuzzy_match', False)
delete_empty_lines = options.get('delete_empty_lines', False)
if not file1 or not file2:
return 0
@@ -120,6 +121,9 @@ def compare_docx_files(file1, file2, **options):
if ignore_order:
doc1_paragraphs = sorted(doc1_paragraphs)
doc2_paragraphs = sorted(doc2_paragraphs)
if delete_empty_lines:
doc1_paragraphs = [p for p in doc1_paragraphs if p.strip()]
doc2_paragraphs = [p for p in doc2_paragraphs if p.strip()]
elif file1.endswith('.odt') and file2.endswith('.odt'):
try:
doc1 = load(file1)
@@ -132,6 +136,9 @@ def compare_docx_files(file1, file2, **options):
if ignore_order:
doc1_paragraphs = sorted(doc1_paragraphs)
doc2_paragraphs = sorted(doc2_paragraphs)
if delete_empty_lines:
doc1_paragraphs = [p for p in doc1_paragraphs if p.strip()]
doc2_paragraphs = [p for p in doc2_paragraphs if p.strip()]
else:
# Unsupported file types or mismatch
print("Unsupported file types or mismatch between file types.")

View File

@@ -28,11 +28,8 @@
{
"type": "launch",
"parameters": {
"command": [
"vlc",
"--repeat",
"/home/user/Desktop/planet.mp4"
]
"command": "vlc",
"shell": true
}
}
],

View File

@@ -64,6 +64,13 @@
"command": "echo password | sudo -S pip install pysrt",
"shell": "true"
}
},
{
"type": "command",
"parameters": {
"command": "echo osworld-public-evaluation | sudo -S pip install pysrt",
"shell": "true"
}
}
],
"func": "exact_match",

View File

@@ -1,7 +1,7 @@
{
"id": "a82b78bb-7fde-4cb3-94a4-035baf10bcf0",
"snapshot": "libreoffice_calc",
"instruction": "I'm really enjoying this paper. Could you please locate the personal webpages of the initial author and the last three authors? Please include them in a browser bookmark folder titled 'Liked Authors.'",
"instruction": "I'm really enjoying this paper. Could you please locate the personal webpages of the initial author and the last three authors? Please include them in a browser bookmark folder titled 'Liked Authors' under the 'Bookmarks bar'.",
"source": "authors",
"config": [
{

View File

@@ -76,7 +76,7 @@
},
"expected": {
"type": "cloud_file",
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/multi_apps/b5062e3e-641c-4e3a-907b-ac864d2e7652/authors-gt.xlsx",
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/multi_apps/b5062e3e-641c-4e3a-907b-ac864d2e7652/authors-ground_truth.xlsx",
"dest": "authors-gt.xlsx"
},
"options": {

View File

@@ -55,6 +55,12 @@
}
],
"func": "compare_docx_files",
"options": {
"ignore_blanks": true,
"ignore_order": true,
"content_only": true,
"delete_empty_lines": true
},
"result": {
"type": "vm_file",
"path": "/home/user/Desktop/script.docx",

View File

@@ -2,8 +2,8 @@
{
"host": "gw.dataimpulse.com",
"port": 823,
"username": "fba5ac061fe18be70c6c",
"password": "e225c50bf56bdd6c",
"username": "your_username",
"password": "your_password",
"protocol": "http",
"provider": "dataimpulse",
"type": "residential",