pull/3/head
killian 12 months ago
parent 692c383552
commit 5f22885e75

@ -12,7 +12,21 @@
</form> </form>
<div id="messages"></div> <div id="messages"></div>
<script> <script>
var ws = new WebSocket("ws://localhost:8000/"); var ws;
function connectWebSocket() {
ws = new WebSocket("ws://localhost:8000/");
ws.onopen = function(event) {
console.log("Connected to WebSocket server.");
};
ws.onerror = function(error) {
console.log("WebSocket error: ", error);
};
ws.onclose = function(event) {
console.log("WebSocket connection closed. Retrying in 1 second...");
setTimeout(connectWebSocket, 1000);
};
}
connectWebSocket();
var lastMessageElement = null; var lastMessageElement = null;
ws.onmessage = function (event) { ws.onmessage = function (event) {
if (lastMessageElement == null) { if (lastMessageElement == null) {

@ -4,7 +4,6 @@ version = "0.0.1"
description = "The python at the heart of the 01." description = "The python at the heart of the 01."
authors = ["Open Interpreter <killian@openinterpreter.com>"] authors = ["Open Interpreter <killian@openinterpreter.com>"]
license = "AGPL" license = "AGPL"
readme = "README.md"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.11" python = "^3.11"

@ -1,13 +1,13 @@
### Start whisper.cpp and stuff? ### Start whisper.cpp and stuff?
### APP
open app/index.html
# ^ This should be to run it in fullscreen / kiosk mode
### CORE ### CORE
cd core/ cd core/
pip install poetry pip install poetry
poetry install poetry install
poetry run bash start.sh poetry run bash start.sh
### APP
open app/index.html
# ^ This should be to run it in fullscreen / kiosk mode

Loading…
Cancel
Save