Spaces:
Runtime error
Runtime error
File size: 1,274 Bytes
9b674e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# Introduction
In this example we have an idea to summerize whole day of an employee via GPT Computer Assistant.
# Code
```console
computerassistant --api
```
```python
from gpt_computer_assistant.remote import remote
remote.profile("Screen Analysis")
# We will loop for 5 minutes
loop_results = []
for i in range(1000):
remote.reset_memory()
remote.just_screenshot()
detailed_analyses = remote.input("What is in the scren, detailed analyses")
app_name = remote.input("What is the app that the employee is using?")
subject = remote.input("What is the subject of this usage of the app?")
activity = remote.input("What is the employee doing now?")
loop_results.append({"detailed_analyses": detailed_analyses, "app_name": app_name, "subject": subject, "activity": activity})
remote.wait(10)
# Summery of the work day
summery_results = []
remote.profile("Summerizer")
remote.reset_memory()
for i in loop_results:
total_string = i["detailed_analyses"] + " " + i["app_name"] + " " + i["subject"] + " " + i["activity"]
total_string = "Please summerize the work day" + total_string
summerized = remote.input(total_string)
summery_results.append(summerized)
print("Summery: ", summery_results)
``` |