Warning: session_start(): open(/var/lib/php/sessions/sess_jbs6ern3vkgmoq8s4o4o3mhmb9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
concept Line {
S text;
S type; // 'user, 'suggested, 'bot
}
concept Interaction {
new L lines;
bool current;
}
module TrainInteraction {
transient S imageID = #1101205;
transient JTextField tfInput, tfToSay;
transient JLabel lblOutput;
transient Interaction current;
start {
db();
current = conceptWhere(Interaction, current := true);
}
visualize {
tfInput = jTextField();
tfToSay = jTextField();
ret withBottomMargin(20,
centerAndSouthWithMargins(
westAndCenterWithMargin(jimage(imageID), dm_printLogComponent()),
jvstackWithSpacing(
fontSize(20, lblOutput = jCenteredBoldLabel("Hello!")),
withLabel("Your input:", focusOnShow(fontSize(16, tfInput))),
withLabel("Make me say:", focusOnShow(fontSize(16, tfToSay))),
)));
}
}