Amir Mahla commited on
Commit
ea31a57
·
1 Parent(s): d4c3cf0

CHG README

Browse files
Files changed (2) hide show
  1. README.md +3 -0
  2. client_usage.py +3 -3
README.md CHANGED
@@ -8,3 +8,6 @@ pinned: false
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11
+
12
+
13
+ # Duplicate the Space to use it
client_usage.py CHANGED
@@ -55,10 +55,10 @@ async def main():
55
  sleep(7)
56
 
57
  print(await session.call_tool("move_mouse", {"x": 1200, "y": 120}))
58
- sleep(0.5)
59
 
60
  print(await session.call_tool("left_click", {}))
61
- sleep(1)
62
 
63
  print(await session.call_tool("move_mouse", {"x": 1200, "y": 160}))
64
  print(await session.call_tool("left_click", {}))
@@ -66,7 +66,7 @@ async def main():
66
 
67
  print(await session.call_tool("move_mouse", {"x": 1600, "y": 320}))
68
  print(await session.call_tool("left_click", {}))
69
- sleep(1)
70
 
71
  response = await session.call_tool("screenshot", {})
72
  screenshot_base64 = response.content[0].data
 
55
  sleep(7)
56
 
57
  print(await session.call_tool("move_mouse", {"x": 1200, "y": 120}))
58
+ sleep(2)
59
 
60
  print(await session.call_tool("left_click", {}))
61
+ sleep(2)
62
 
63
  print(await session.call_tool("move_mouse", {"x": 1200, "y": 160}))
64
  print(await session.call_tool("left_click", {}))
 
66
 
67
  print(await session.call_tool("move_mouse", {"x": 1600, "y": 320}))
68
  print(await session.call_tool("left_click", {}))
69
+ sleep(2)
70
 
71
  response = await session.call_tool("screenshot", {})
72
  screenshot_base64 = response.content[0].data