Repositories (1)
LLM_Buttplug
4 snippets stored for this repo
import asyncio, websockets, json, logging, sys
from buttplug import Client, WebsocketConnector, ProtocolSpec
Function to control all device on duration, intensity, oscillation and rotation
:param device: buttplug Device object
:param duration: Duration of the command in ms
params = {
"display_name": "LLM Buttplug",
"is_tab": False,
with gr.Column(min_width=100):
checkbox_trigger_word = gr.Checkbox(label="Enable Buttplug and trigger_word", value=params["enable_trigger_word"])
textbox_trigger_word = gr.Textbox(label="Trigger word", value=params['trigger_word'], visible=params["enable_trigger_word"])