These are VMs running built with JavaScript/WASM allowing you to run an operating system within your browser, all client side.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
下面是一个C#版本的onnx程序,请用TypeScript配合onnxruntime-node移植为Nodejs版本,可以借助nodejs本地执行,注意JS的构造函数不能调用 async函数,可以额外使用一个 async init 方法 | |
注意添加一个测试代码,可以输入wav文件路径和modelDir目录路径,可以借助第三方库node-wav,为了方便执行,代码都在一个文件中,提供调用代码,包含读取wav文件为Float32Array wavdata的逻辑 | |
必须完全遵守原始逻辑,不能简化或者遗漏任何逻辑 | |
<csharp code> | |
using Microsoft.ML.OnnxRuntime.Tensors; | |
namespace AliParaformerAsr.Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:00:01,000 --> 00:00:05,351 | |
在开发过程中,我们会优化代码,以提高开发效率。 | |
2 | |
00:00:05,351 --> 00:00:09,334 | |
将代码拆分成不同的文件或模块, | |
3 | |
00:00:09,334 --> 00:00:14,660 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"systeminfo": "AVX = 0 | AVX2 = 0 | AVX512 = 0 | FMA = 0 | NEON = 1 | ARM_FMA = 1 | METAL = 1 | F16C = 0 | FP16_VA = 1 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 0 | SSSE3 = 0 | VSX = 0 | CUDA = 0 | COREML = 0 | OPENVINO = 0 | ", | |
"model": { | |
"type": "medium", | |
"multilingual": false, | |
"vocab": 51864, | |
"audio": { | |
"ctx": 1500, | |
"state": 1024, | |
"head": 16, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"task": "transcribe", | |
"language": "english", | |
"duration": 791.97998046875, | |
"text": "Whether you think artificial intelligence will save the world or end it, you have Geoffrey Hinton to thank. Hinton has been called the godfather of AI, a British computer scientist whose controversial ideas helped make advanced artificial intelligence possible and so change the world. Hinton believes that AI will do enormous good, but tonight he has a warning. He says that AI systems may be more intelligent than we know and there's a chance the machines could take over, which made us ask the question. The story will continue in a moment. Does humanity know what it's doing? No. I think we're moving into a period when, for the first time ever, we may have things more intelligent than us. You believe they can understand? Yes. You believe they are intelligent? Yes. You believe these systems have experiences of their own and can make decisions based on those experiences? In the same sense as people do, yes. Are they consci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
const getMessagesWithReactDevTools = () => { | |
const messages = []; | |
function traverseComponentTree(fiberNode) { | |
let parts = fiberNode.memoizedProps?.parts; | |
if (Array.isArray(parts)) { | |
// console.log(fiberNode, parts); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WARNING:此脚本仅做学习和演示用途,在不了解其用途前不建议使用 | |
// 本脚本的用途是将输入内容分页,每次提取一页内容,编辑第二条消息,发送,然后收集结果 | |
// 使用前,需要有两条消息,参考模板 https://chat.openai.com/share/17195108-30c2-4c62-8d59-980ca645f111 | |
// 演示视频: https://www.bilibili.com/video/BV1tp4y1c7ME/?vd_source=e71f65cbc40a72fce570b20ffcb28b22 | |
// | |
(function (fullText) { | |
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
const groupSentences = (fullText, maxCharecters = 2800) => { | |
const sentences = fullText.split("\n").filter((line) => line.trim().length > 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
const observer = new MutationObserver(() => { | |
// Find the button of 'Continue generating' | |
[...document.querySelectorAll("button.btn")].forEach((btn) => { | |
if (btn.innerText.includes("Continue generating")) { | |
console.log("Found the button of 'Continue generating'"); | |
setTimeout(() => { | |
console.log("Clicked it to continue generating after 1 second"); | |
btn.click(); | |
}, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
async function continueInput() { | |
await wait(3000); | |
console.log("Type continue after 1 second"); | |
const textarea = document.querySelector("#prompt-textarea"); | |
textarea.value = "继续" | |
textarea.click(); | |
console.log("Press Enter after 1 second"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Script Info] | |
Title: How AI Could Empower Any Business | Andrew Ng | TED | |
ScriptType: v4.00+ | |
WrapStyle: 0 | |
Collisions: Reverse | |
PlayResX: 384 | |
PlayResY: 288 | |
Timer: 100.0000 | |
ScaledBorderAndShadow: no |
NewerOlder