move transformers.ts
This commit is contained in:
@@ -12,7 +12,7 @@ import { convertImage, hasher } from "./parser"
|
||||
|
||||
import { reencodeImage } from "./process/files/image"
|
||||
import { PngChunk } from "./pngChunk"
|
||||
import type { OnnxModelFiles } from "./process/embedding/transformers"
|
||||
import type { OnnxModelFiles } from "./process/transformers"
|
||||
|
||||
export const hubURL = "https://sv.risuai.xyz"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import localforage from "localforage";
|
||||
import { similarity } from "ml-distance";
|
||||
import { globalFetch } from "src/ts/storage/globalApi";
|
||||
import { runEmbedding } from "../embedding/transformers";
|
||||
import { runEmbedding } from "../transformers";
|
||||
|
||||
|
||||
export class HypaProcesser{
|
||||
|
||||
@@ -7,7 +7,7 @@ import { cloneDeep } from "lodash";
|
||||
import { HypaProcesser } from "./hypamemory";
|
||||
import { stringlizeChat } from "../stringlize";
|
||||
import { globalFetch } from "src/ts/storage/globalApi";
|
||||
import { runSummarizer } from "../embedding/transformers";
|
||||
import { runSummarizer } from "../transformers";
|
||||
|
||||
export async function supaMemory(
|
||||
chats:OpenAIChat[],
|
||||
|
||||
@@ -21,7 +21,7 @@ import { supportsInlayImage } from "./files/image";
|
||||
import { OaifixBias } from "../plugins/fixer";
|
||||
import { Capacitor } from "@capacitor/core";
|
||||
import { getFreeOpenRouterModel } from "../model/openrouter";
|
||||
import { runTransformers } from "./embedding/transformers";
|
||||
import { runTransformers } from "./transformers";
|
||||
import {createParser, type ParsedEvent, type ReconnectInterval} from 'eventsource-parser'
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { runTranslator, translateVox } from "../translator/translator";
|
||||
import { globalFetch } from "../storage/globalApi";
|
||||
import { language } from "src/lang";
|
||||
import { getCurrentCharacter, sleep } from "../util";
|
||||
import { registerOnnxModel, runVITS } from "./embedding/transformers";
|
||||
import { registerOnnxModel, runVITS } from "./transformers";
|
||||
|
||||
let sourceNode:AudioBufferSourceNode = null
|
||||
|
||||
|
||||
@@ -1135,7 +1135,7 @@ export function setPreset(db:Database, newPres: botPreset){
|
||||
|
||||
import { encode as encodeMsgpack, decode as decodeMsgpack } from "msgpackr";
|
||||
import * as fflate from "fflate";
|
||||
import type { OnnxModelFiles } from '../process/embedding/transformers';
|
||||
import type { OnnxModelFiles } from '../process/transformers';
|
||||
import type { RisuModule } from '../process/modules';
|
||||
|
||||
export async function downloadPreset(id:number){
|
||||
|
||||
Reference in New Issue
Block a user