Fixed small issue with ping
This commit is contained in:
parent
fbc8760990
commit
be18ac2177
|
@ -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
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue