Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeBirdTech committed Oct 21, 2024
1 parent f8d2423 commit 5a493c9
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions examples/screenpipe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,51 +149,6 @@
"\n",
"print(\"Custom instructions set for Open Interpreter.\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example Usage"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Example usage of the search_screenpipe function\n",
"\n",
"# Search without time range\n",
"print(\"Searching for 'Open Interpreter' without time range:\")\n",
"results = search_screenpipe(\"Open Interpreter\", limit=3)\n",
"for result in results:\n",
" print(f\"Text: {result['content']['text'][:300]}...\")\n",
" print(f\"Source: {result['content']['app_name']} - {result['content']['window_name']}\")\n",
" print(f\"Timestamp: {result['content']['timestamp']}\")\n",
" print()\n",
"\n",
"# Search with time range\n",
"print(\"\\nSearching for 'project meeting' with time range:\")\n",
"results = search_screenpipe(\"project meeting\", limit=5, start_time=\"2024-10-16T12:00:00Z\", end_time=\"2024-10-16T19:00:00Z\")\n",
"for result in results:\n",
" print(f\"Text: {result['content']['text'][:300]}...\")\n",
" print(f\"Source: {result['content']['app_name']} - {result['content']['window_name']}\")\n",
" print(f\"Timestamp: {result['content']['timestamp']}\")\n",
" print()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Conclusion\n",
"\n",
"This notebook demonstrates how to set up and use Open Interpreter in conjunction with ScreenPipe. By leveraging these tools together, you can create powerful, context-aware applications that can search and analyze your screen content history.\n",
"\n",
"Remember to adjust the search queries and time ranges in the example usage section to fit your specific use case. Happy coding!"
]
}
],
"metadata": {
Expand All @@ -212,7 +167,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 5a493c9

Please sign in to comment.