Spaces:
Running
Running
Amir Mahla
commited on
Commit
·
ea31a57
1
Parent(s):
d4c3cf0
CHG README
Browse files- README.md +3 -0
- 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(
|
59 |
|
60 |
print(await session.call_tool("left_click", {}))
|
61 |
-
sleep(
|
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(
|
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
|