Fixed small issue with ping

pull/30/head
Zohaib Rauf 11 months ago
parent fbc8760990
commit be18ac2177

@ -16,12 +16,13 @@ PIPER_VOICE_NAME="en_US-lessac-medium.onnx"
# Expose through Ngrok # Expose through Ngrok
# Uncomment following line with your Ngrok auth token (https://dashboard.ngrok.com/get-started/your-authtoken) # 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 SERVER_START, this is where we'll serve the server.
# If DEVICE_START, this is where the device expects the server to be. # If DEVICE_START, this is where the device expects the server to be.
SERVER_URL=ws://localhost:8000/ 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 SERVER_START=True
DEVICE_START=True DEVICE_START=True

@ -95,7 +95,7 @@ if os.getenv('CODE_RUNNER') == "device":
# Configure interpreter # Configure interpreter
interpreter = configure_interpreter(interpreter) interpreter = configure_interpreter(interpreter)
app.get("/ping") @app.get("/ping")
async def ping(): async def ping():
return PlainTextResponse("pong") return PlainTextResponse("pong")

Loading…
Cancel
Save