From 2f5cc97b746b378e39a104922c5f55dfbb859acf Mon Sep 17 00:00:00 2001 From: killian <63927363+KillianLucas@users.noreply.github.com> Date: Sat, 3 Feb 2024 17:23:29 -0800 Subject: [PATCH] Update --- OS/01/{ => _archive}/core/__init__.py | 0 .../core/__pycache__/core.cpython-310.pyc | Bin 0 -> 937 bytes OS/01/{ => _archive}/core/core.py | 0 OS/01/{ => _archive}/core/i_endpoint.py | 0 OS/01/{ => _archive}/core/kernel_watch.py | 0 OS/01/{ => _archive}/core/start_core.py | 5 ++++- OS/01/{ => _archive}/interface/__init__.py | 0 .../interface/candidate_animation.html | 0 OS/01/{ => _archive}/interface/display.html | 0 OS/01/{ => _archive}/interface/interface.py | 0 .../assistant.py} | 0 .../conversations/another-interpreter.json} | 0 OS/01/{core => assistant}/conversations/user.json | 0 .../llm/models/mistral.llamafile} | 0 .../llm/models/moonbeam.llamafile} | 0 OS/01/{core => assistant}/llm/start.py | 0 .../{core/tools => assistant/skills}/schedule.py | 0 .../start_whisper.sh => assistant/stt.py} | 0 OS/01/assistant/tts.py | 0 OS/01/computer/kernel_watcher.py | 0 OS/01/computer/run.py | 0 OS/01/requirements.txt | 9 +++++---- OS/01/user/user.py | 0 23 files changed, 9 insertions(+), 5 deletions(-) rename OS/01/{ => _archive}/core/__init__.py (100%) create mode 100644 OS/01/_archive/core/__pycache__/core.cpython-310.pyc rename OS/01/{ => _archive}/core/core.py (100%) rename OS/01/{ => _archive}/core/i_endpoint.py (100%) rename OS/01/{ => _archive}/core/kernel_watch.py (100%) rename OS/01/{ => _archive}/core/start_core.py (94%) rename OS/01/{ => _archive}/interface/__init__.py (100%) rename OS/01/{ => _archive}/interface/candidate_animation.html (100%) rename OS/01/{ => _archive}/interface/display.html (100%) rename OS/01/{ => _archive}/interface/interface.py (100%) rename OS/01/{core/conversations/another-interpreter.json => assistant/assistant.py} (100%) rename OS/01/{core/llm/models/mistral.llamafile => assistant/conversations/another-interpreter.json} (100%) rename OS/01/{core => assistant}/conversations/user.json (100%) rename OS/01/{core/llm/models/moonbeam.llamafile => assistant/llm/models/mistral.llamafile} (100%) rename OS/01/{interface/local_audio/start_rhasspy.sh => assistant/llm/models/moonbeam.llamafile} (100%) rename OS/01/{core => assistant}/llm/start.py (100%) rename OS/01/{core/tools => assistant/skills}/schedule.py (100%) rename OS/01/{interface/local_audio/start_whisper.sh => assistant/stt.py} (100%) create mode 100644 OS/01/assistant/tts.py create mode 100644 OS/01/computer/kernel_watcher.py create mode 100644 OS/01/computer/run.py create mode 100644 OS/01/user/user.py diff --git a/OS/01/core/__init__.py b/OS/01/_archive/core/__init__.py similarity index 100% rename from OS/01/core/__init__.py rename to OS/01/_archive/core/__init__.py diff --git a/OS/01/_archive/core/__pycache__/core.cpython-310.pyc b/OS/01/_archive/core/__pycache__/core.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..08501b6c4ea88ba970bd4eb4d45a4d28165fc605 GIT binary patch literal 937 zcmZ`&y>1jS5cc2R?cMDqDF{%|KocE;Tq04S2#|;bRgee>VS&)Hc5<8BTW@SH5z$^1 zN)QDVRC{zh00k0H;+6s--T;Z8@g|@k#8@--%=r6e#(Ssw{VoDY-hY&D8A6}Db6f&& zu7R3MU<494L;P^Z95+7UM4}xkh@jxJ7nCy*h}JX21A#Zup#24qXoGh$mBiUd8Jm7R zjnDw@d55z?Y0HUtoM3i;#ERkNcsK$cK@Dy88Q$c4Kqr;qO zSGZ<^&9GkjeX4^Qs#_wMVbK~By|jyLTeL-ZKwkEz#D;aJ@?7*D)L^gip<&` z@cMNhw4!yl!oE_2?f`nOLH8;Oc!JSC_y>RCQ5{v#={kCNamrwVzUWrWd!sOEU;uuW6#t5?XQXql9ByX(shNbm4+zROaJ%NS^@j+vVY17{m<6X_lpNo|Q># zhU+RRCosMl-bn4u^6_wGb$DyjTmMXrSuUPB<|hn+#jJoKgwYUpVTC`=1q4Sl!e@SV zNrdNMpQ8~4#S3s|gnTET^+^B?S}=(esnI>~wErdZ;C2)6PuARN8a-wfA>qQci4tWd SulNTx{(l*w5QlhyM&uVS2k8+2 literal 0 HcmV?d00001 diff --git a/OS/01/core/core.py b/OS/01/_archive/core/core.py similarity index 100% rename from OS/01/core/core.py rename to OS/01/_archive/core/core.py diff --git a/OS/01/core/i_endpoint.py b/OS/01/_archive/core/i_endpoint.py similarity index 100% rename from OS/01/core/i_endpoint.py rename to OS/01/_archive/core/i_endpoint.py diff --git a/OS/01/core/kernel_watch.py b/OS/01/_archive/core/kernel_watch.py similarity index 100% rename from OS/01/core/kernel_watch.py rename to OS/01/_archive/core/kernel_watch.py diff --git a/OS/01/core/start_core.py b/OS/01/_archive/core/start_core.py similarity index 94% rename from OS/01/core/start_core.py rename to OS/01/_archive/core/start_core.py index aed523f..845f6d4 100644 --- a/OS/01/core/start_core.py +++ b/OS/01/_archive/core/start_core.py @@ -72,7 +72,10 @@ interpreter.id = 206 # Used to identify itself to other interpreters. This shoul ### RESET conversations/user.json -with open('interpreter/conversations/user.json', 'w') as file: + +script_dir = os.path.dirname(os.path.abspath(__file__)) +user_json_path = os.path.join(script_dir, 'conversations', 'user.json') +with open(user_json_path, 'w') as file: json.dump([], file) diff --git a/OS/01/interface/__init__.py b/OS/01/_archive/interface/__init__.py similarity index 100% rename from OS/01/interface/__init__.py rename to OS/01/_archive/interface/__init__.py diff --git a/OS/01/interface/candidate_animation.html b/OS/01/_archive/interface/candidate_animation.html similarity index 100% rename from OS/01/interface/candidate_animation.html rename to OS/01/_archive/interface/candidate_animation.html diff --git a/OS/01/interface/display.html b/OS/01/_archive/interface/display.html similarity index 100% rename from OS/01/interface/display.html rename to OS/01/_archive/interface/display.html diff --git a/OS/01/interface/interface.py b/OS/01/_archive/interface/interface.py similarity index 100% rename from OS/01/interface/interface.py rename to OS/01/_archive/interface/interface.py diff --git a/OS/01/core/conversations/another-interpreter.json b/OS/01/assistant/assistant.py similarity index 100% rename from OS/01/core/conversations/another-interpreter.json rename to OS/01/assistant/assistant.py diff --git a/OS/01/core/llm/models/mistral.llamafile b/OS/01/assistant/conversations/another-interpreter.json similarity index 100% rename from OS/01/core/llm/models/mistral.llamafile rename to OS/01/assistant/conversations/another-interpreter.json diff --git a/OS/01/core/conversations/user.json b/OS/01/assistant/conversations/user.json similarity index 100% rename from OS/01/core/conversations/user.json rename to OS/01/assistant/conversations/user.json diff --git a/OS/01/core/llm/models/moonbeam.llamafile b/OS/01/assistant/llm/models/mistral.llamafile similarity index 100% rename from OS/01/core/llm/models/moonbeam.llamafile rename to OS/01/assistant/llm/models/mistral.llamafile diff --git a/OS/01/interface/local_audio/start_rhasspy.sh b/OS/01/assistant/llm/models/moonbeam.llamafile similarity index 100% rename from OS/01/interface/local_audio/start_rhasspy.sh rename to OS/01/assistant/llm/models/moonbeam.llamafile diff --git a/OS/01/core/llm/start.py b/OS/01/assistant/llm/start.py similarity index 100% rename from OS/01/core/llm/start.py rename to OS/01/assistant/llm/start.py diff --git a/OS/01/core/tools/schedule.py b/OS/01/assistant/skills/schedule.py similarity index 100% rename from OS/01/core/tools/schedule.py rename to OS/01/assistant/skills/schedule.py diff --git a/OS/01/interface/local_audio/start_whisper.sh b/OS/01/assistant/stt.py similarity index 100% rename from OS/01/interface/local_audio/start_whisper.sh rename to OS/01/assistant/stt.py diff --git a/OS/01/assistant/tts.py b/OS/01/assistant/tts.py new file mode 100644 index 0000000..e69de29 diff --git a/OS/01/computer/kernel_watcher.py b/OS/01/computer/kernel_watcher.py new file mode 100644 index 0000000..e69de29 diff --git a/OS/01/computer/run.py b/OS/01/computer/run.py new file mode 100644 index 0000000..e69de29 diff --git a/OS/01/requirements.txt b/OS/01/requirements.txt index 4a7cc7b..daef207 100644 --- a/OS/01/requirements.txt +++ b/OS/01/requirements.txt @@ -1,4 +1,5 @@ -pip install git+https://github.com/KillianLucas/open-interpreter.git -pip install redis -pip install fastapi -pip install uvicorn +git+https://github.com/KillianLucas/open-interpreter.git +redis +fastapi +uvicorn +RPi.GPIO \ No newline at end of file diff --git a/OS/01/user/user.py b/OS/01/user/user.py new file mode 100644 index 0000000..e69de29