Spaces:
Runtime error
Runtime error
File size: 511 Bytes
01c5d61 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <html>
<head>
<meta charset="UTF-8" />
</head>
<body>
<h1>Chainlit Copilot Test</h1>
<script src="http://localhost:8000/copilot/index.js"></script>
<script>
window.mountChainlitWidget({
chainlitServer: "http://localhost:8000",
});
window.addEventListener("chainlit-call-fn", (e) => {
const { name, args, callback } = e.detail;
if (name === "test") {
callback("You sent: " + args.msg);
}
});
</script>
</body>
</html>
|