Views
No views yet
MobileWorld-Delta-TEXT-8B is a mobile GUI world model. Given the current screenshot and an action, it predicts the changes that will happen on the next screen.MobileWorld-TEXT-8B, this model is trained to produce an incremental description: it should focus on what changes after the action rather than describing the entire next page from scratch.1You are an intelligent GUI agent capable of understanding GUIs and actions on mobile devices. Given the current GUI screenshot and input action, describe the changes that will occur on the next screen after the action is performed.
2 The action is {action}.The action is ... is kept from the training/inference template.action: natural-language action description, for example click, scroll down, input text: hello, or open app: Gmail.1click # click or long_press action
2input text: <text> # input_text action
3scroll <direction> # scroll action
4open app: <app_name> # open_app action1import base64
2from openai import OpenAI
3
4client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
5
6def image_url(path):
7 payload = base64.b64encode(open(path, "rb").read()).decode("utf-8")
8 return f"data:image/png;base64,{payload}"
9
10user_prompt = (
11 "You are an intelligent GUI agent capable of understanding GUIs and actions on mobile devices. "
12 "Given the current GUI screenshot and input action, describe the changes that will occur on the "
13 "next screen after the action is performed.\n The action is scroll down."
14)
15
16response = client.chat.completions.create(
17 model="xwk123/MobileWorld-Delta-TEXT-8B",
18 messages=[
19 {
20 "role": "user",
21 "content": [
22 {"type": "image_url", "image_url": {"url": image_url("screenshot.png")}},
23 {"type": "text", "text": user_prompt},
24 ],
25 },
26 ],
27 max_tokens=2000,
28 temperature=0.0,
29)
30
31delta_description = response.choices[0].message.content.strip()