diff --git a/metagpt/environment/android/screenshot/screenshot.jpg b/examples/data/screenshot/screenshot.jpg similarity index 100% rename from metagpt/environment/android/screenshot/screenshot.jpg rename to examples/data/screenshot/screenshot.jpg diff --git a/metagpt/environment/android/android_ext_env.py b/metagpt/environment/android/android_ext_env.py index c34d22e07..152c71d04 100644 --- a/metagpt/environment/android/android_ext_env.py +++ b/metagpt/environment/android/android_ext_env.py @@ -243,7 +243,7 @@ class AndroidExtEnv(ExtEnv): @mark_as_writeable def user_openApp(self, app_name: str): # openApp without xml - screenshot_path = self.get_screenshot("screenshot", "./screenshot") + screenshot_path = self.get_screenshot("screenshot", "../../../examples/data/screenshot") image = screenshot_path ocr_detection = pipeline(Tasks.ocr_detection, model="damo/cv_resnet18_ocr-detection-line-level_damo") ocr_recognition = pipeline(Tasks.ocr_recognition, model="damo/cv_convnextTiny_ocr-recognition-document_damo")