From be18ac2177de8fb53cf6ec23a90e1d2d48c8720f Mon Sep 17 00:00:00 2001 From: Zohaib Rauf Date: Sun, 11 Feb 2024 04:57:17 -0800 Subject: [PATCH] Fixed small issue with ping --- OS/01/.env.example | 5 +++-- OS/01/server.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OS/01/.env.example b/OS/01/.env.example index 444c447..9202db6 100644 --- a/OS/01/.env.example +++ b/OS/01/.env.example @@ -16,12 +16,13 @@ PIPER_VOICE_NAME="en_US-lessac-medium.onnx" # Expose through Ngrok # Uncomment following line with your Ngrok auth token (https://dashboard.ngrok.com/get-started/your-authtoken) -#NGROK_AUTHTOKEN="" +#NGROK_AUTHTOKEN="AUTH TOKEN" # If SERVER_START, this is where we'll serve the server. # If DEVICE_START, this is where the device expects the server to be. SERVER_URL=ws://localhost:8000/ -SERVER_CONNECTION_URL=ws://localhost:8000/ # Comment if setting up through Ngrok +# If you are setting up Ngrok then either change the below to Ngrok URL if running device separately, else comment it +SERVER_CONNECTION_URL=ws://localhost:8000/ SERVER_START=True DEVICE_START=True diff --git a/OS/01/server.py b/OS/01/server.py index 341e27c..d891b65 100644 --- a/OS/01/server.py +++ b/OS/01/server.py @@ -95,7 +95,7 @@ if os.getenv('CODE_RUNNER') == "device": # Configure interpreter interpreter = configure_interpreter(interpreter) -app.get("/ping") +@app.get("/ping") async def ping(): return PlainTextResponse("pong")