Skip to content

Commit 3b36289

Browse files
authoredSep 11, 2024··
refactor(visual-prompt): Use transformer GroudingDino to replace third party code (#29)
1 parent 69f48b6 commit 3b36289

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+641
-9984
lines changed
 

‎crab-benchmark-v0/dataset/android_subtasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def check_contain_contact(name: str, env) -> bool:
7171
desc = node.get("content-desc")
7272
if "Email" in desc:
7373
mail_node = node
74-
if mail_node == None:
74+
if mail_node is None:
7575
return False
7676
real_mail_node = mail_node.xpath(
7777
'//*[@resource-id="com.android.contacts:id/header"]'

‎crab-benchmark-v0/dataset/handmade_tasks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
# =========== Copyright 2024 @ CAMEL-AI.org. All Rights Reserved. ===========
14-
# ruff: noqa: E501
14+
# ruff: noqa: E501 F405
1515
import os
1616
import re
1717
import subprocess
@@ -28,7 +28,7 @@
2828
check_message_text_box_empty,
2929
get_xml_etree,
3030
)
31-
from .ubuntu_subtasks import *
31+
from .ubuntu_subtasks import * # noqa: F403
3232

3333
_item_count_cache = None
3434

0 commit comments

Comments
 (0)
Please sign in to comment.