from om1_vlm import VideoStream
# Initialize the VILA VLM API
ws_client = ws.Client(url="wss://api-vila.openmind.org?api_key=<YOUR_API_KEY>")
vlm = VideoStream(ws_client.send_message, fps=30)
# Start the VILA VLM API
ws_client.start()
vlm.start()
# Retrieve the VILA VLM API response
ws_client.register_message_callback(lambda msg: print(msg))
while True:
time.sleep(1)