SYMBOL INDEX (1991 symbols across 75 files) FILE: data/config/js/custom.js function gradioLoaded (line 3) | function gradioLoaded(mutations) { function setTipsByID (line 23) | function setTipsByID(element, text) { function setTips (line 27) | function setTips() { function generateUID (line 82) | function generateUID() { function live2dShow (line 89) | function live2dShow() { function live2d (line 131) | function live2d() { function keyboard_enter (line 187) | function keyboard_enter() { function keyboard_enter_page (line 196) | function keyboard_enter_page(submitGroup_id, submitBtn_id, user_input_id) { FILE: data/config/js/index.js function t (line 1) | function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n... function i (line 1) | function i(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)} function ml (line 1) | function ml(r){var e=this.constructor;return this.then(function(t){retur... function yl (line 1) | function yl(r){var e=this;return new e(function(t,i){if(!(r&&typeof r.le... function lh (line 1) | function lh(r,e){this.name="AggregateError",this.errors=r,this.message=e... function xl (line 1) | function xl(r){var e=this;return new e(function(t,i){if(!(r&&typeof r.le... function fh (line 1) | function fh(r){return!!(r&&typeof r.length<"u")} function Tl (line 1) | function Tl(){} function El (line 1) | function El(r,e){return function(){r.apply(e,arguments)}} function pt (line 1) | function pt(r){if(!(this instanceof pt))throw new TypeError("Promises mu... function ch (line 1) | function ch(r,e){for(;r._state===3;)r=r._value;if(r._state===0){r._defer... function Hn (line 1) | function Hn(r,e){try{if(e===r)throw new TypeError("A promise cannot be r... function Gr (line 1) | function Gr(r,e){r._state=2,r._value=e,Vn(r)} function Vn (line 1) | function Vn(r){r._state===2&&r._deferreds.length===0&&pt._immediateFn(fu... function Sl (line 1) | function Sl(r,e,t){this.onFulfilled=typeof r=="function"?r:null,this.onR... function dh (line 1) | function dh(r,e){var t=!1;try{r(function(i){t||(t=!0,Hn(e,i))},function(... function s (line 1) | function s(o,h){try{if(h&&(typeof h=="object"||typeof h=="function")){va... function Xs (line 1) | function Xs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.c... function Cl (line 5) | function Cl(r){if(r==null)throw new TypeError("Object.assign cannot be c... function Il (line 5) | function Il(){try{if(!Object.assign)return!1;var r=new String("abc");if(... function Dl (line 23) | function Dl(r){return function(e){return e.test(r)}} function Fl (line 23) | function Fl(r){var e={userAgent:"",platform:"",maxTouchPoints:0};!r&&typ... function Ll (line 23) | function Ll(){return!Ht.apple.device} function Bl (line 23) | function Bl(r){var e=!0;if(Ht.tablet||Ht.phone){if(Ht.apple.device){var ... function i (line 23) | function i(){} function n (line 23) | function n(h,u,l){this.fn=h,this.context=u,this.once=l||!1} function s (line 23) | function s(h,u,l,c,f){if(typeof l!="function")throw new TypeError("The l... function a (line 23) | function a(h,u){--h._eventsCount===0?h._events=new i:delete h._events[u]} function o (line 23) | function o(){this._events=new i,this._eventsCount=0} function qi (line 23) | function qi(r,e,t){t=t||2;var i=e&&e.length,n=i?e[0]*t:r.length,s=_h(r,0... function _h (line 23) | function _h(r,e,t,i,n){var s,a;if(n===Wn(r,e,t,i)>0)for(s=e;s=0)return!1;for(va... function kl (line 23) | function kl(r,e,t,i){var n=r.prev,s=r,a=r.next;if(ct(n,s,a)>=0)return!1;... function Gl (line 23) | function Gl(r,e,t){var i=r;do{var n=i.prev,s=i.next.next;!$i(n,s)&&gh(n,... function Xl (line 23) | function Xl(r,e,t,i,n,s){var a=r;do{for(var o=a.next.next;o!==a.prev;){i... function Hl (line 23) | function Hl(r,e,t,i){var n=[],s,a,o,h,u;for(s=0,a=e.length;s=t.next.y&... function Yl (line 23) | function Yl(r,e){return ct(r.prev,r,e.prev)<0&&ct(e.next,r,r.next)<0} function Wl (line 23) | function Wl(r,e,t,i){var n=r;do n.z===0&&(n.z=zn(n.x,n.y,e,t,i)),n.prevZ... function ql (line 23) | function ql(r){var e,t,i,n,s,a,o,h,u=1;do{for(t=r,r=null,s=null,a=0;t;){... function zn (line 23) | function zn(r,e,t,i,n){return r=(r-t)*n|0,e=(e-i)*n|0,r=(r|r<<8)&1671193... function $l (line 23) | function $l(r){var e=r,t=r;do(e.x=(r-a)*(s-o)&&(r-a)*(i-o)... function Zl (line 23) | function Zl(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!Kl(r,e)&&(zr(r,... function ct (line 23) | function ct(r,e,t){return(e.y-r.y)*(t.x-e.x)-(e.x-r.x)*(t.y-e.y)} function $i (line 23) | function $i(r,e){return r.x===e.x&&r.y===e.y} function gh (line 23) | function gh(r,e,t,i){var n=fi(ct(r,e,t)),s=fi(ct(r,e,i)),a=fi(ct(t,i,r))... function li (line 23) | function li(r,e,t){return e.x<=Math.max(r.x,t.x)&&e.x>=Math.min(r.x,t.x)... function fi (line 23) | function fi(r){return r>0?1:r<0?-1:0} function Kl (line 23) | function Kl(r,e){var t=r;do{if(t.i!==r.i&&t.next.i!==r.i&&t.i!==e.i&&t.n... function zr (line 23) | function zr(r,e){return ct(r.prev,r,r.next)<0?ct(r,e,r.next)>=0&&ct(r,r.... function Jl (line 23) | function Jl(r,e){var t=r,i=!1,n=(r.x+e.x)/2,s=(r.y+e.y)/2;do t.y>s!=t.ne... function mh (line 23) | function mh(r,e){var t=new Yn(r.i,r.x,r.y),i=new Yn(e.i,e.x,e.y),n=r.nex... function uo (line 23) | function uo(r,e,t,i){var n=new Yn(r,e,t);return i?(n.next=i.next,n.prev=... function Yr (line 23) | function Yr(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.n... function Yn (line 23) | function Yn(r,e,t){this.i=r,this.x=e,this.y=t,this.prev=null,this.next=n... function Wn (line 23) | function Wn(r,e,t,i){for(var n=0,s=e,a=t-i;s1&&(W=H[0]+"@",M=H[1]),... function R (line 23) | function R(M){for(var w=[],H=0,W=M.length,q,gt;H65535&&(w-=65536,... function G (line 23) | function G(M){return M-48<10?M-22:M-65<26?M-65:M-97<26?M-97:h} function J (line 23) | function J(M,w){return M+22+75*(M<26)-((w!=0)<<5)} function D (line 23) | function D(M,w,H){var W=0;for(M=H?x(M/f):M>>1,M+=x(M/w);M>b*l>>1;W+=h)M=... function O (line 23) | function O(M){var w=[],H=M.length,W,q=0,gt=p,at=d,ot,St,wt,mt,Q,nt,ht,z,... function X (line 23) | function X(M){var w,H,W,q,gt,at,ot,St,wt,mt,Q,nt=[],ht,z,It,Rt;for(M=R(M... function Et (line 23) | function Et(M){return P(M,function(w){return v.test(w)?O(w.slice(4).toLo... function Y (line 23) | function Y(M){return P(M,function(w){return g.test(w)?"xn--"+X(w):w})} function rf (line 23) | function rf(r,e){return Object.prototype.hasOwnProperty.call(r,e)} function te (line 23) | function te(){this.protocol=null,this.slashes=null,this.auth=null,this.h... function Zi (line 24) | function Zi(r,e,t){if(r&&se.isObject(r)&&r instanceof te)return r;var i=... function mf (line 24) | function mf(r){return se.isString(r)&&(r=Zi(r)),r instanceof te?r.format... function yf (line 24) | function yf(r,e){return Zi(r,!1,!0).resolve(e)} function Wt (line 30) | function Wt(r){if(typeof r!="string")throw new TypeError("Path must be a... function po (line 30) | function po(r){var e=r.split("?")[0];return e.split("#")[0]} function xf (line 30) | function xf(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")} function bf (line 30) | function bf(r,e,t){return r.replace(new RegExp(xf(e),"g"),t)} function Tf (line 30) | function Tf(r,e){for(var t="",i=0,n=-1,s=0,a,o=0;o<=r.length;++o){if(o"u"&&(vn=function(){var e={stencil:!0,fai... function Ze (line 33) | function Ze(r,e){return e===void 0&&(e=[]),e[0]=(r>>16&255)/255,e[1]=(r>... function js (line 33) | function js(r){var e=r.toString(16);return e="000000".substring(0,6-e.le... function zs (line 33) | function zs(r){return typeof r=="string"&&(r=lp[r.toLowerCase()]||r,r[0]... function fp (line 33) | function fp(r){return(r[0]*255<<16)+(r[1]*255<<8)+(r[2]*255|0)} function cp (line 33) | function cp(){for(var r=[],e=[],t=0;t<32;t++)r[t]=t,e[t]=t;r[L.NORMAL_NP... function Ws (line 33) | function Ws(r,e){return Ys[e?1:0][r]} function Th (line 33) | function Th(r,e,t,i){return t=t||new Float32Array(4),i||i===void 0?(t[0]... function Ki (line 33) | function Ki(r,e){if(e===1)return(e*255<<24)+r;if(e===0)return 0;var t=r>... function qs (line 33) | function qs(r,e,t,i){return t=t||new Float32Array(4),t[0]=(r>>16&255)/25... function Eh (line 33) | function Eh(r,e){e===void 0&&(e=null);var t=r*6;if(e=e||new Uint16Array(... function Ji (line 33) | function Ji(r){if(r.BYTES_PER_ELEMENT===4)return r instanceof Float32Arr... function pp (line 33) | function pp(r,e){for(var t=0,i=0,n={},s=0;s>>1,r|=r>>>2,r|=r>>>4,r|=r>>... function Jn (line 33) | function Jn(r){return!(r&r-1)&&!!r} function Qn (line 33) | function Qn(r){var e=(r>65535?1:0)<<4;r>>>=e;var t=(r>255?1:0)<<3;return... function We (line 33) | function We(r,e,t){var i=r.length,n;if(!(e>=i||t===0)){t=e+t>i?i-e:t;var... function Ye (line 33) | function Ye(r){return r===0?0:r<0?-1:1} function Ie (line 33) | function Ie(){return++vp} function At (line 33) | function At(r,e,t){if(t===void 0&&(t=3),!_o[e]){var i=new Error().stack;... function _p (line 38) | function _p(){var r;for(r in Dt)Dt[r].destroy();for(r in Ut)Ut[r].destro... function gp (line 38) | function gp(){var r;for(r in Dt)delete Dt[r];for(r in Ut)delete Ut[r]} function r (line 38) | function r(e,t,i){this.canvas=A.ADAPTER.createCanvas(),this.context=this... function Sh (line 38) | function Sh(r){var e=r.width,t=r.height,i=r.getContext("2d",{willReadFre... function mp (line 38) | function mp(r){var e=Ph.exec(r);if(e)return{mediaType:e[1]?e[1].toLowerC... function wh (line 38) | function wh(r,e){if(e===void 0&&(e=globalThis.location),r.indexOf("data:... function $r (line 38) | function $r(r,e){var t=A.RETINA_PREFIX.exec(r);return t?parseFloat(t[1])... function r (line 44) | function r(e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.x=0,this.y=0,th... function r (line 44) | function r(e,t,i,n){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0... function r (line 44) | function r(e,t,i){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),... function r (line 44) | function r(e,t,i,n){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0... function r (line 44) | function r(){for(var e=arguments,t=[],i=0;i0&&(e+=` function zh (line 355) | function zh(r,e){if(r===0)throw new Error("Invalid value of `0` passed t... function Gp (line 355) | function Gp(){if(typeof Sr=="boolean")return Sr;try{var r=new Function("... function r (line 372) | function r(e,t,i){i===void 0&&(i="pixi-shader"),this.id=Vp++,this.vertex... function r (line 374) | function r(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof we... function r (line 374) | function r(){this.data=0,this.blendMode=L.NORMAL,this.polygonOffset=0,th... function e (line 407) | function e(t,i,n){var s=this,a=xr.from(t||e.defaultVertexSrc,i||e.defaul... function r (line 448) | function r(e,t){this._texture=e,this.mapCoord=new lt,this.uClampFrame=ne... function e (line 448) | function e(t,i,n){var s=this,a=null;return typeof t!="string"&&i===void ... function r (line 448) | function r(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[... function r (line 448) | function r(e){this.renderer=e,this.maskStack=[],this.glConst=0} function e (line 448) | function e(t){var i=r.call(this,t)||this;return i.glConst=A.ADAPTER.getW... function e (line 448) | function e(t){var i=r.call(this,t)||this;return i.glConst=A.ADAPTER.getW... function r (line 448) | function r(e){this.renderer=e,this.destinationFrame=null,this.sourceFram... function r (line 448) | function r(e){this.renderer=e,this.clearColor=e._backgroundColorRgba,thi... function qp (line 448) | function qp(r,e,t,i,n){t.buffer.update(n)} function $h (line 486) | function $h(r){for(var e=r.map(function(h){return{data:h,offset:0,dataLe... function Zh (line 486) | function Zh(r,e){var t=[];for(var i in r)e[i]&&t.push(e[i]);return t.sor... function Kh (line 486) | function Kh(r,e){if(!r.autoManage)return{size:0,syncFunc:qp};for(var t=Z... function r (line 518) | function r(){} function r (line 518) | function r(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},... function Kp (line 518) | function Kp(r,e){for(var t={},i=e.getProgramParameter(r,e.ACTIVE_ATTRIBU... function Jp (line 518) | function Jp(r,e){for(var t={},i=e.getProgramParameter(r,e.ACTIVE_UNIFORM... function Qh (line 518) | function Qh(r,e){var t=bo(r,r.VERTEX_SHADER,e.vertexSrc),i=bo(r,r.FRAGME... function r (line 518) | function r(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.... function tv (line 518) | function tv(r,e){return e===void 0&&(e=[]),e[L.NORMAL]=[r.ONE,r.ONE_MINU... function r (line 518) | function r(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blend... function r (line 518) | function r(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdl... function ov (line 518) | function ov(r){var e,t,i,n,s,a,o,h,u,l,c,f,d,p,_,v,g,m,y,b,x,T,E;return"... function r (line 518) | function r(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-... function r (line 518) | function r(e){this.renderer=e,this.boundTextures=[],this.currentLocation... function e (line 518) | function e(t,i){t===void 0&&(t=pr.UNKNOWN);var n=r.call(this)||this;retu... function r (line 518) | function r(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,th... function r (line 518) | function r(e){this.renderer=e,this.managedBuffers={},this.boundBufferBas... function e (line 518) | function e(t){var i=r.call(this,pr.WEBGL,t)||this;return t=i.options,i.g... function ru (line 518) | function ru(r){return xa.create(r)} function r (line 555) | function r(e){At("6.1.0","System class is deprecated, implemement ISyste... function r (line 555) | function r(){this.texArray=null,this.blend=0,this.type=Xt.TRIANGLES,this... function r (line 555) | function r(){this.elements=[],this.ids=[],this.count=0} function r (line 555) | function r(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e... function e (line 555) | function e(t){var i=r.call(this,t)||this;return i.shaderGenerator=null,i... function r (line 555) | function r(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCach... function e (line 563) | function e(t){t===void 0&&(t=!1);var i=r.call(this)||this;return i._buff... function r (line 594) | function r(){} function h (line 594) | function h(u){var l=o.call(this,u)||this;return l.shaderGenerator=new su... function r (line 600) | function r(e){this.debug=!1,this._isActive=!1,this._isMobileAccessibilit... function r (line 606) | function r(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tang... function Tv (line 619) | function Tv(r,e){hs(r,e);function t(){this.constructor=r}r.prototype=e==... function r (line 619) | function r(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropa... function r (line 619) | function r(e){this._pointerId=e,this._flags=r.FLAGS.NONE} function r (line 619) | function r(){this._tempPoint=new et} method buttonMode (line 619) | get buttonMode(){return this.cursor==="pointer"} method buttonMode (line 619) | set buttonMode(r){r?this.cursor="pointer":this.cursor==="pointer"&&(this... method trackedPointers (line 619) | get trackedPointers(){return this._trackedPointers===void 0&&(this._trac... function e (line 619) | function e(t,i){var n=r.call(this)||this;return i=i||{},n.renderer=t,n.a... function r (line 625) | function r(e){this.renderer=e} function r (line 631) | function r(e,t,i){t===void 0&&(t=!1),this._fn=e,this._once=t,this._thisA... function Oo (line 631) | function Oo(r,e){return r._head?(r._tail._next=e,e._prev=r._tail,r._tail... function r (line 631) | function r(){this._head=this._tail=void 0} function vu (line 631) | function vu(r,e){e=e||{};for(var t={key:["source","protocol","authority"... function Fo (line 631) | function Fo(){} function Lo (line 631) | function Lo(r,e,t){e&&e.indexOf(".")===0&&(e=e.substring(1)),e&&(r[e]=t)} function In (line 631) | function In(r){return r.toString().replace("object ","")} function r (line 631) | function r(e,t,i){if(this._dequeue=Fo,this._onLoadBinding=null,this._ele... function De (line 631) | function De(){} function Av (line 631) | function Av(r){return function(){for(var t=arguments,i=[],n=0;nt.cl... method initialize (line 1555) | initialize(e){this.parameterIndex=e.getParameterIndex(this.partId),thi... method clone (line 1555) | clone(){const e=new Wi;return e.partId=this.partId,e.parameterIndex=th... class U (line 1555) | class U{constructor(e,t){this.x=e||0,this.y=t||0}add(e){const t=new U(0,... method constructor (line 1555) | constructor(e,t){this.x=e||0,this.y=t||0} method add (line 1555) | add(e){const t=new U(0,0);return t.x=this.x+e.x,t.y=this.y+e.y,t} method substract (line 1555) | substract(e){const t=new U(0,0);return t.x=this.x-e.x,t.y=this.y-e.y,t} method multiply (line 1555) | multiply(e){const t=new U(0,0);return t.x=this.x*e.x,t.y=this.y*e.y,t} method multiplyByScaler (line 1555) | multiplyByScaler(e){return this.multiply(new U(e,e))} method division (line 1555) | division(e){const t=new U(0,0);return t.x=this.x/e.x,t.y=this.y/e.y,t} method divisionByScalar (line 1555) | divisionByScalar(e){return this.division(new U(e,e))} method getLength (line 1555) | getLength(){return Math.sqrt(this.x*this.x+this.y*this.y)} method getDistanceWith (line 1555) | getDistanceWith(e){return Math.sqrt((this.x-e.x)*(this.x-e.x)+(this.y-... method dot (line 1555) | dot(e){return this.x*e.x+this.y*e.y} method normalize (line 1555) | normalize(){const e=Math.pow(this.x*this.x+this.y*this.y,.5);this.x=th... method isEqual (line 1555) | isEqual(e){return this.x==e.x&&this.y==e.y} method isNotEqual (line 1555) | isNotEqual(e){return!this.isEqual(e)} method range (line 1555) | static range(r,e,t){return rt&&(r=t),r} method sin (line 1555) | static sin(r){return Math.sin(r)} method cos (line 1555) | static cos(r){return Math.cos(r)} method abs (line 1555) | static abs(r){return Math.abs(r)} method sqrt (line 1555) | static sqrt(r){return Math.sqrt(r)} method cbrt (line 1555) | static cbrt(r){if(r===0)return r;let e=r;const t=e<0;t&&(e=-e);let i;ret... method getEasingSine (line 1555) | static getEasingSine(r){return r<0?0:r>1?1:.5-.5*this.cos(r*Math.PI)} method max (line 1555) | static max(r,e){return r>e?r:e} method min (line 1555) | static min(r,e){return r>e?e:r} method degreesToRadian (line 1555) | static degreesToRadian(r){return r/180*Math.PI} method radianToDegrees (line 1555) | static radianToDegrees(r){return r*180/Math.PI} method directionToRadian (line 1555) | static directionToRadian(r,e){const t=Math.atan2(e.y,e.x),i=Math.atan2(r... method directionToDegrees (line 1555) | static directionToDegrees(r,e){const t=this.directionToRadian(r,e);let i... method radianToDirection (line 1555) | static radianToDirection(r){const e=new U;return e.x=this.sin(r),e.y=thi... method quadraticEquation (line 1555) | static quadraticEquation(r,e,t){return this.abs(r)1&&(e=1),t<0?t=0:t>1&&(t=1),i<0?i=0:i... method getModelColor (line 1555) | getModelColor(){return Object.assign({},this._modelColor)} method setIsPremultipliedAlpha (line 1555) | setIsPremultipliedAlpha(e){this._isPremultipliedAlpha=e} method isPremultipliedAlpha (line 1555) | isPremultipliedAlpha(){return this._isPremultipliedAlpha} method setIsCulling (line 1555) | setIsCulling(e){this._isCulling=e} method isCulling (line 1555) | isCulling(){return this._isCulling} method setAnisotropy (line 1555) | setAnisotropy(e){this._anisortopy=e} method getAnisotropy (line 1555) | getAnisotropy(){return this._anisortopy} method getModel (line 1555) | getModel(){return this._model} method constructor (line 1555) | constructor(){this._isCulling=!1,this._isPremultipliedAlpha=!1,this._a... class Dr (line 1555) | class Dr{constructor(){this.R=1,this.G=1,this.B=1,this.A=1}} method constructor (line 1555) | constructor(){this.R=1,this.G=1,this.B=1,this.A=1} class ni (line 1555) | class ni{static startUp(e){if(ie)return Rr("CubismFramework.startUp() is... method startUp (line 1555) | static startUp(e){if(ie)return Rr("CubismFramework.startUp() is alread... method cleanUp (line 1555) | static cleanUp(){ie=!1,or=!1,hr=void 0} method initialize (line 1555) | static initialize(){if(!ie){Fr("CubismFramework is not started.");retu... method dispose (line 1555) | static dispose(){if(!ie){Fr("CubismFramework is not started.");return}... method isStarted (line 1555) | static isStarted(){return ie} method isInitialized (line 1555) | static isInitialized(){return or} method coreLogFunction (line 1555) | static coreLogFunction(e){Live2DCubismCore.Logging.csmGetLogFunction()... method getLoggingLevel (line 1555) | static getLoggingLevel(){return hr!=null?hr.loggingLevel:er.LogLevel_Off} method constructor (line 1555) | constructor(){} function qo (line 1555) | function qo(r,...e){sn.print(er.LogLevel_Debug,"[CSM][D]"+r+` function Rr (line 1556) | function Rr(r,...e){sn.print(er.LogLevel_Info,"[CSM][I]"+r+` function Fr (line 1557) | function Fr(r,...e){sn.print(er.LogLevel_Warning,"[CSM][W]"+r+` function ur (line 1558) | function ur(r,...e){sn.print(er.LogLevel_Error,"[CSM][E]"+r+` class sn (line 1559) | class sn{static print(e,t,i){if(e0?this.print(e,` method constructor (line 1561) | constructor(){} class xg (line 1561) | class xg{update(){this._model.update(),this._model.drawables.resetDynami... method update (line 1561) | update(){this._model.update(),this._model.drawables.resetDynamicFlags()} method getCanvasWidth (line 1561) | getCanvasWidth(){return this._model==null?0:this._model.canvasinfo.Can... method getCanvasHeight (line 1561) | getCanvasHeight(){return this._model==null?0:this._model.canvasinfo.Ca... method saveParameters (line 1561) | saveParameters(){const e=this._model.parameters.count,t=this._savedPar... method getModel (line 1561) | getModel(){return this._model} method getPartIndex (line 1561) | getPartIndex(e){let t;const i=this._model.parts.count;for(t=0;tt!=null&&t._... method setEventCallback (line 1561) | setEventCallback(e,t=null){this._eventCallBack=e,this._eventCustomData=t} method doUpdateMotion (line 1561) | doUpdateMotion(e,t){let i=!1,n=0;for(;n=2?n=e[t-1].position.substract(e[t... function Qg (line 1561) | function Qg(r,e){return Math.abs(Math.max(r,e)-Math.min(r,e))} function tm (line 1561) | function tm(r,e){return Math.min(r,e)+Qg(r,e)/2} function em (line 1561) | function em(r,e){return r.x} function rm (line 1561) | function rm(r,e){return r.y} function im (line 1561) | function im(r,e){return e} function nm (line 1561) | function nm(r,e,t,i,n,s,a,o){let h,u,l,c,f=new U(0,0),d=new U(0,0),p=new... function sm (line 1561) | function sm(r,e,t,i,n){let s,a,o;s=n.getScale(n.translationScale,n.angle... function Ga (line 1561) | function Ga(r,e,t,i,n,s,a,o){let h=0;const u=rt.max(t,e);ut?t:r} function ul (line 1561) | function ul(r,e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).f... function Tm (line 1561) | function Tm(r){let e=r.lastIndexOf("/");return e!=-1&&(r=r.slice(0,e)),e... function Em (line 1561) | function Em(r,e){const t=r.indexOf(e);t!==-1&&r.splice(t,1)} class ll (line 1561) | class ll extends ye{constructor(e,t){super(),this.expressions=[],this.re... method constructor (line 1561) | constructor(e,t){super(),this.expressions=[],this.reserveExpressionInd... method init (line 1561) | init(){this.defaultExpression=this.createExpression({},void 0),this.cu... method loadExpression (line 1561) | loadExpression(e){return ft(this,null,function*(){if(!this.definitions... method _loadExpression (line 1561) | _loadExpression(e){throw new Error("Not implemented.")} method setRandomExpression (line 1561) | setRandomExpression(){return ft(this,null,function*(){if(this.definiti... method resetExpression (line 1561) | resetExpression(){this._setExpression(this.defaultExpression)} method restoreExpression (line 1561) | restoreExpression(){this._setExpression(this.currentExpression)} method setExpression (line 1561) | setExpression(e){return ft(this,null,function*(){if(typeof e!="number"... method update (line 1561) | update(e,t){return this.isFinished()?!1:this.updateParameters(e,t)} method destroy (line 1561) | destroy(){this.destroyed=!0,this.emit("destroy");const e=this;e.defini... class wm (line 1561) | class wm{constructor(){this.targetX=0,this.targetY=0,this.x=0,this.y=0,t... method constructor (line 1561) | constructor(){this.targetX=0,this.targetY=0,this.x=0,this.y=0,this.vx=... method focus (line 1561) | focus(e,t,i=!1){this.targetX=rh(e,-1,1),this.targetY=rh(t,-1,1),i&&(th... method update (line 1561) | update(e){const t=this.targetX-this.x,i=this.targetY-this.y;if(Math.ab... class Xa (line 1561) | class Xa{constructor(e){this.json=e;let t=e.url;if(typeof t!="string")th... method constructor (line 1561) | constructor(e){this.json=e;let t=e.url;if(typeof t!="string")throw new... method resolveURL (line 1561) | resolveURL(e){return he.resolve(this.url,e)} method replaceFiles (line 1561) | replaceFiles(e){this.moc=e(this.moc,"moc"),this.pose!==void 0&&(this.p... method getDefinedFiles (line 1561) | getDefinedFiles(){const e=[];return this.replaceFiles(t=>(e.push(t),t)... method validateFiles (line 1561) | validateFiles(e){const t=(s,a)=>{const o=this.resolveURL(s);if(!e.incl... class Cm (line 1561) | class Cm{constructor(){this.debug=!1,this.currentPriority=0,this.reserve... method constructor (line 1561) | constructor(){this.debug=!1,this.currentPriority=0,this.reservePriorit... method reserve (line 1561) | reserve(e,t,i){if(i<=0)return tt.log(this.tag,"Cannot start a motion w... method start (line 1561) | start(e,t,i,n){if(n===1){if(this.setReservedIdle(void 0,void 0),this.c... method complete (line 1561) | complete(){this.setCurrent(void 0,void 0,0)} method setCurrent (line 1561) | setCurrent(e,t,i){this.currentPriority=i,this.currentGroup=e,this.curr... method setReserved (line 1561) | setReserved(e,t,i){this.reservePriority=i,this.reservedGroup=e,this.re... method setReservedIdle (line 1561) | setReservedIdle(e,t){this.reservedIdleGroup=e,this.reservedIdleIndex=t} method isActive (line 1561) | isActive(e,t){return e===this.currentGroup&&t===this.currentIndex||e==... method reset (line 1561) | reset(){this.setCurrent(void 0,void 0,0),this.setReserved(void 0,void ... method shouldRequestIdleMotion (line 1561) | shouldRequestIdleMotion(){return this.currentGroup===void 0&&this.rese... method shouldOverrideExpression (line 1561) | shouldOverrideExpression(){return!Lt.preserveExpressionOnMotion&&this.... method dump (line 1561) | dump(e,t){if(this.debug){const i=["currentPriority","reservePriority",... class ze (line 1564) | class ze{static get volume(){return this._volume}static set volume(e){th... method volume (line 1564) | static get volume(){return this._volume} method volume (line 1564) | static set volume(e){this._volume=(e>1?1:e<0?0:e)||0,this.audios.forEa... method add (line 1564) | static add(e,t,i){const n=new Audio(e);return n.volume=this._volume,n.... method play (line 1564) | static play(e){return new Promise((t,i)=>{var n;(n=e.play())==null||n.... method dispose (line 1564) | static dispose(e){e.pause(),e.removeAttribute("src"),Em(this.audios,e)} method destroy (line 1564) | static destroy(){for(let e=this.audios.length-1;e>=0;e--)this.dispose(... class Ha (line 1564) | class Ha extends ye{constructor(e,t){super(),this.motionGroups={},this.s... method constructor (line 1564) | constructor(e,t){super(),this.motionGroups={},this.state=new Cm,this.p... method init (line 1564) | init(e){e?.idleMotionGroup&&(this.groups.idle=e.idleMotionGroup),this.... method setupMotions (line 1564) | setupMotions(e){for(const i of Object.keys(this.definitions))this.moti... method loadMotion (line 1564) | loadMotion(e,t){return ft(this,null,function*(){var i;if(!((i=this.def... method _loadMotion (line 1564) | _loadMotion(e,t){throw new Error("Not implemented.")} method startMotion (line 1564) | startMotion(e,t){return ft(this,arguments,function*(i,n,s=ks.NORMAL){v... method startRandomMotion (line 1564) | startRandomMotion(e,t){return ft(this,null,function*(){const i=this.de... method stopAllMotions (line 1564) | stopAllMotions(){this._stopAllMotions(),this.state.reset(),this.curren... method update (line 1564) | update(e,t){var i;return this.isFinished()&&(this.playing&&(this.playi... method destroy (line 1564) | destroy(){var e;this.destroyed=!0,this.emit("destroy"),this.stopAllMot... class Rm (line 1564) | class Rm extends ye{constructor(){super(...arguments),this.focusControll... method constructor (line 1564) | constructor(){super(...arguments),this.focusController=new wm,this.ori... method init (line 1564) | init(){this.setupLayout(),this.setupHitAreas()} method setupLayout (line 1564) | setupLayout(){const e=this,t=this.getSize();e.originalWidth=t[0],e.ori... method setupHitAreas (line 1564) | setupHitAreas(){const e=this.getHitAreaDefs().filter(t=>t.index>=0);fo... method hitTest (line 1564) | hitTest(e,t){return Object.keys(this.hitAreas).filter(i=>this.isHit(i,... method isHit (line 1564) | isHit(e,t,i){if(!this.hitAreas[e])return!1;const n=this.hitAreas[e].in... method getDrawableBounds (line 1564) | getDrawableBounds(e,t){const i=this.getDrawableVertices(e);let n=i[0],... method updateTransform (line 1564) | updateTransform(e){this.drawingMatrix.copyFrom(e).append(this.localTra... method update (line 1564) | update(e,t){this.focusController.update(e)} method destroy (line 1564) | destroy(){this.destroyed=!0,this.emit("destroy"),this.motionManager.de... class nh (line 1564) | class nh extends Error{constructor(e,t,i,n=!1){super(e),this.url=t,this.... method constructor (line 1564) | constructor(e,t,i,n=!1){super(e),this.url=t,this.status=i,this.aborted=n} method createXHR (line 1564) | static createXHR(r,e,t,i,n){const s=new XMLHttpRequest;if(Mt.allXhrSet.a... method cancelXHRs (line 1564) | static cancelXHRs(){var r;(r=Mt.xhrMap.get(this))==null||r.forEach(e=>{e... method release (line 1564) | static release(){Mt.allXhrSet.forEach(r=>r.abort()),Mt.allXhrSet.clear()... function fl (line 1564) | function fl(r,e){let t=-1;return i(0);function i(n,s){if(s)return Promis... class Ae (line 1564) | class Ae{static load(e){return fl(this.middlewares,e).then(()=>e.result)}} method load (line 1564) | static load(e){return fl(this.middlewares,e).then(()=>e.result)} function Dm (line 1564) | function Dm(r,e={}){var t;const i={resourceOptions:{crossorigin:e.crossO... method registerRuntime (line 1564) | static registerRuntime(r){Ct.runtimes.push(r),Ct.runtimes.sort((e,t)=>t.... method findRuntime (line 1564) | static findRuntime(r){for(const e of Ct.runtimes)if(e.test(r))return e} method setupLive2DModel (line 1564) | static setupLive2DModel(r,e,t){return ft(this,null,function*(){const i=n... method loadMotion (line 1564) | static loadMotion(r,e,t){var i,n;const s=a=>r.emit("motionLoadError",e,t... method loadExpression (line 1566) | static loadExpression(r,e){var t;const i=n=>r.emit("expressionLoadError"... method releaseTasks (line 1568) | static releaseTasks(){this instanceof Ha?Ct.motionTasksMap.delete(this):... class Fm (line 1568) | class Fm{constructor(){this._autoInteract=!1}get autoInteract(){return t... method constructor (line 1568) | constructor(){this._autoInteract=!1} method autoInteract (line 1568) | get autoInteract(){return this._autoInteract} method autoInteract (line 1568) | set autoInteract(e){e!==this._autoInteract&&(e?this.on("pointertap",ah... method registerInteraction (line 1568) | registerInteraction(e){e!==this.interactionManager&&(this.unregisterIn... method unregisterInteraction (line 1568) | unregisterInteraction(){var e;this.interactionManager&&((e=this.intera... function ah (line 1568) | function ah(r){this.tap(r.data.global.x,r.data.global.y)} function oh (line 1568) | function oh(r){this.focus(r.data.global.x,r.data.global.y)} class Lm (line 1568) | class Lm extends Qi{} class Va (line 1568) | class Va extends Yt{constructor(e){super(),this.tag="Live2DModel(uniniti... method constructor (line 1568) | constructor(e){super(),this.tag="Live2DModel(uninitialized)",this.text... method from (line 1568) | static from(e,t){const i=new this(t);return vt.setupLive2DModel(i,e,t)... method fromSync (line 1568) | static fromSync(e,t){const i=new this(t);return vt.setupLive2DModel(i,... method registerTicker (line 1568) | static registerTicker(e){Te=e} method autoUpdate (line 1568) | get autoUpdate(){return this._autoUpdate} method autoUpdate (line 1568) | set autoUpdate(e){var t;Te||(Te=(t=window.PIXI)==null?void 0:t.Ticker)... method init (line 1568) | init(e){this.tag=`Live2DModel(${this.internalModel.settings.name})`;co... method onAnchorChange (line 1568) | onAnchorChange(){this.pivot.set(this.anchor.x*this.internalModel.width... method motion (line 1568) | motion(e,t,i){return t===void 0?this.internalModel.motionManager.start... method expression (line 1568) | expression(e){return this.internalModel.motionManager.expressionManage... method focus (line 1568) | focus(e,t,i=!1){Bt.x=e,Bt.y=t,this.toModelPosition(Bt,Bt,!0);let n=Bt.... method tap (line 1568) | tap(e,t){const i=this.hitTest(e,t);i.length&&(tt.log(this.tag,"Hit",i)... method hitTest (line 1568) | hitTest(e,t){return Bt.x=e,Bt.y=t,this.toModelPosition(Bt,Bt),this.int... method toModelPosition (line 1568) | toModelPosition(e,t=e.clone(),i){return i||(this._recursivePostUpdateT... method containsPoint (line 1568) | containsPoint(e){return this.getBounds(!0).contains(e.x,e.y)} method _calculateBounds (line 1568) | _calculateBounds(){this._bounds.addFrame(this.transform,0,0,this.inter... method onTickerUpdate (line 1568) | onTickerUpdate(){this.update(Te.shared.deltaMS)} method update (line 1568) | update(e){this.deltaTime+=e,this.elapsedTime+=e} method _render (line 1568) | _render(e){this.registerInteraction(e.plugins.interaction),e.batch.res... method destroy (line 1568) | destroy(e){this.emit("destroy"),this.autoUpdate=!1,this.unregisterInte... method resolveURL (line 1568) | static resolveURL(r,e){var t;const i=(t=ae.filesMap[r])==null?void 0:t[e... method upload (line 1568) | static upload(r,e){return ft(this,null,function*(){const t={};for(const ... method createSettings (line 1568) | static createSettings(r){return ft(this,null,function*(){const e=r.find(... method readText (line 1568) | static readText(r){return ft(this,null,function*(){return new Promise((e... method unzip (line 1568) | static unzip(r,e){return ft(this,null,function*(){const t=yield Ot.getFi... method createSettings (line 1568) | static createSettings(r){return ft(this,null,function*(){const t=(yield ... method zipReader (line 1568) | static zipReader(r,e){return ft(this,null,function*(){throw new Error("N... method getFilePaths (line 1568) | static getFilePaths(r){return ft(this,null,function*(){throw new Error("... method getFiles (line 1568) | static getFiles(r,e){return ft(this,null,function*(){throw new Error("No... method readText (line 1568) | static readText(r,e){return ft(this,null,function*(){throw new Error("No... method releaseReader (line 1568) | static releaseReader(r){} class Nm (line 1568) | class Nm extends ll{constructor(e,t){var i;super(e,t),this.queueManager=... method constructor (line 1568) | constructor(e,t){var i;super(e,t),this.queueManager=new sl,this.defini... method isFinished (line 1568) | isFinished(){return this.queueManager.isFinished()} method getExpressionIndex (line 1568) | getExpressionIndex(e){return this.definitions.findIndex(t=>t.Name===e)} method getExpressionFile (line 1568) | getExpressionFile(e){return e.File} method createExpression (line 1568) | createExpression(e,t){return Ba.create(e)} method _setExpression (line 1568) | _setExpression(e){return this.queueManager.startMotion(e,!1,performanc... method stopAllExpressions (line 1568) | stopAllExpressions(){this.queueManager.stopAllMotions()} method updateParameters (line 1568) | updateParameters(e,t){return this.queueManager.doUpdateMotion(e,t)} class dr (line 1568) | class dr extends Xa{constructor(e){if(super(e),!dr.isValidJSON(e))throw ... method constructor (line 1568) | constructor(e){if(super(e),!dr.isValidJSON(e))throw new TypeError("Inv... method isValidJSON (line 1568) | static isValidJSON(e){var t;return!!e?.FileReferences&&typeof e.FileRe... method replaceFiles (line 1568) | replaceFiles(e){if(super.replaceFiles(e),this.motions)for(const[t,i]of... class Um (line 1568) | class Um extends Ha{constructor(e,t){var i;super(e,t),this.groups={idle:... method constructor (line 1568) | constructor(e,t){var i;super(e,t),this.groups={idle:"Idle"},this.motio... method init (line 1568) | init(e){super.init(e),this.settings.expressions&&(this.expressionManag... method isFinished (line 1568) | isFinished(){return this.queueManager.isFinished()} method _startMotion (line 1568) | _startMotion(e,t){return e.setFinishedMotionHandler(t),this.queueManag... method _stopAllMotions (line 1568) | _stopAllMotions(){this.queueManager.stopAllMotions()} method createMotion (line 1568) | createMotion(e,t,i){const n=Ua.create(e),s=new nl(e),a=(t===this.group... method getMotionFile (line 1568) | getMotionFile(e){return e.File} method getMotionName (line 1568) | getMotionName(e){return e.File} method getSoundFile (line 1568) | getSoundFile(e){return e.Sound} method updateParameters (line 1568) | updateParameters(e,t){return this.queueManager.doUpdateMotion(e,t)} method destroy (line 1568) | destroy(){super.destroy(),this.queueManager.release(),this.queueManage... class km (line 1568) | class km extends Rm{constructor(e,t,i){super(),this.lipSync=!0,this.brea... method constructor (line 1568) | constructor(e,t,i){super(),this.lipSync=!0,this.breath=Oa.create(),thi... method init (line 1568) | init(){var e;super.init(),((e=this.settings.getEyeBlinkParameters())==... method getSize (line 1568) | getSize(){return[this.coreModel.getModel().canvasinfo.CanvasWidth,this... method getLayout (line 1568) | getLayout(){const e={};if(this.settings.layout)for(const t of Object.k... method setupLayout (line 1568) | setupLayout(){super.setupLayout(),this.pixelsPerUnit=this.coreModel.ge... method updateWebGLContext (line 1568) | updateWebGLContext(e,t){this.renderer.firstDraw=!0,this.renderer._buff... method bindTexture (line 1568) | bindTexture(e,t){this.renderer.bindTexture(e,t)} method getHitAreaDefs (line 1568) | getHitAreaDefs(){var e,t;return(t=(e=this.settings.hitAreas)==null?voi... method getDrawableIDs (line 1568) | getDrawableIDs(){return this.coreModel.getDrawableIds()} method getDrawableIndex (line 1568) | getDrawableIndex(e){return this.coreModel.getDrawableIndex(e)} method getDrawableVertices (line 1568) | getDrawableVertices(e){if(typeof e=="string"&&(e=this.coreModel.getDra... method updateTransform (line 1568) | updateTransform(e){this.drawingMatrix.copyFrom(this.centeringTransform... method update (line 1568) | update(e,t){var i,n,s,a;super.update(e,t),e/=1e3,t/=1e3;const o=this.c... method updateFocus (line 1568) | updateFocus(){this.coreModel.addParameterValueById(this.idParamEyeBall... method updateNaturalMovements (line 1568) | updateNaturalMovements(e,t){var i;(i=this.breath)==null||i.updateParam... method draw (line 1568) | draw(e){const t=this.drawingMatrix,i=hh.getArray();i[0]=t.a,i[1]=t.b,i... method destroy (line 1568) | destroy(){super.destroy(),this.renderer.release(),this.coreModel.relea... function Gm (line 1568) | function Gm(){return ni.isStarted()?Promise.resolve():(Fi??(Fi=new Promi... function Xm (line 1568) | function Xm(r){r=Object.assign({logFunction:console.log,loggingLevel:er.... method test (line 1568) | test(r){return r instanceof dr||dr.isValidJSON(r)} method isValidMoc (line 1568) | isValidMoc(r){if(r.byteLength<4)return!1;const e=new Int8Array(r,0,4);re... method createModelSettings (line 1568) | createModelSettings(r){return new dr(r)} method createCoreModel (line 1568) | createCoreModel(r){const e=La.create(r);try{const t=e.createModel();retu... method createInternalModel (line 1568) | createInternalModel(r,e,t){const i=new km(r,e,t),n=r;return n.__moc&&(i.... method createPhysics (line 1568) | createPhysics(r,e){return ka.create(e)} method createPose (line 1568) | createPose(r,e){return Da.create(e)} function Hm (line 1568) | function Hm(){var r;(r=this.__moc)==null||r.release()} function $m (line 1568) | function $m(){if(Wm===kr.textContent||kr.textContent.indexOf("s")!==-1)r... FILE: modules/agent/chatdb/chat.py function create_chat_completion (line 8) | def create_chat_completion(messages, model=None, llm_name=None) -> str: function count_message_tokens (line 43) | def count_message_tokens(messages : List[Dict[str, str]], model : str = ... function count_string_tokens (line 84) | def count_string_tokens(string: str, model_name: str = "gpt-3.5-turbo-03... function create_chat_message (line 99) | def create_chat_message(role, content): function generate_context (line 113) | def generate_context(prompt, relevant_memory, full_message_history, model): function chat_with_ai (line 132) | def chat_with_ai( FILE: modules/agent/chatdb/chatdb.py function need_update_sql (line 43) | def need_update_sql(input_string): function call_ai_function (line 50) | def call_ai_function(function, args, description, model=None): function populate_sql_statement (line 72) | def populate_sql_statement(sql_str: str, previous_sql_results): function get_steps_from_response (line 90) | def get_steps_from_response(response): function init_system_msg (line 111) | def init_system_msg(table_details=None): function chain_of_memory (line 129) | def chain_of_memory(sql_steps, mysql_db): function generate_chat_responses (line 161) | def generate_chat_responses(user_inp, mysql_db, historical_message, tabl... FILE: modules/agent/chatdb/mysql.py function sql_result_to_table_str (line 5) | def sql_result_to_table_str(sql_result): class MySQLDB (line 17) | class MySQLDB(object): method __init__ (line 18) | def __init__(self): method connect (line 29) | def connect(self, host, user, password, port, database=None): method disconnect (line 52) | def disconnect(self): method execute_sql (line 58) | def execute_sql(self, sql, raise_err=False): method select (line 99) | def select(self, table, columns="*", condition=None): method insert (line 105) | def insert(self, table, data): method update (line 111) | def update(self, table, data, condition): method delete (line 116) | def delete(self, table, condition): method create_database (line 120) | def create_database(self, database): method drop_database (line 131) | def drop_database(self, ): method get_table_details (line 137) | def get_table_details(self): method get_databases (line 157) | def get_databases(self): method get_tables (line 163) | def get_tables(self,database): method get_table_data (line 169) | def get_table_data(self,table): method get_fields (line 183) | def get_fields(self,table): method load_data (line 199) | def load_data(self,db_name,table_name, fields, data): FILE: modules/agent/internet_search.py class internet_search (line 6) | class internet_search(): method __init__ (line 7) | def __init__(self): method set_v (line 12) | def set_v(self,search,key,result_len): method bing_search (line 17) | def bing_search(self,text): method google_search (line 22) | def google_search(self,text): method search_text (line 26) | def search_text(self,text): FILE: modules/agent/svc/attentions.py class Encoder (line 11) | class Encoder(nn.Module): method __init__ (line 12) | def __init__(self, hidden_channels, filter_channels, n_heads, n_layers... method forward (line 33) | def forward(self, x, x_mask): class Decoder (line 48) | class Decoder(nn.Module): method __init__ (line 49) | def __init__(self, hidden_channels, filter_channels, n_heads, n_layers... method forward (line 75) | def forward(self, x, x_mask, h, h_mask): class MultiHeadAttention (line 99) | class MultiHeadAttention(nn.Module): method __init__ (line 100) | def __init__(self, channels, out_channels, n_heads, p_dropout=0., wind... method forward (line 136) | def forward(self, x, c, attn_mask=None): method attention (line 146) | def attention(self, query, key, value, mask=None): method _matmul_with_relative_values (line 179) | def _matmul_with_relative_values(self, x, y): method _matmul_with_relative_keys (line 188) | def _matmul_with_relative_keys(self, x, y): method _get_relative_embeddings (line 197) | def _get_relative_embeddings(self, relative_embeddings, length): method _relative_position_to_absolute_position (line 212) | def _relative_position_to_absolute_position(self, x): method _absolute_position_to_relative_position (line 229) | def _absolute_position_to_relative_position(self, x): method _attention_bias_proximal (line 243) | def _attention_bias_proximal(self, length): class FFN (line 255) | class FFN(nn.Module): method __init__ (line 256) | def __init__(self, in_channels, out_channels, filter_channels, kernel_... method forward (line 275) | def forward(self, x, x_mask): method _causal_padding (line 285) | def _causal_padding(self, x): method _same_padding (line 294) | def _same_padding(self, x): FILE: modules/agent/svc/commons.py function slice_pitch_segments (line 7) | def slice_pitch_segments(x, ids_str, segment_size=4): function rand_slice_segments_with_pitch (line 15) | def rand_slice_segments_with_pitch(x, pitch, x_lengths=None, segment_siz... function init_weights (line 25) | def init_weights(m, mean=0.0, std=0.01): function get_padding (line 31) | def get_padding(kernel_size, dilation=1): function convert_pad_shape (line 35) | def convert_pad_shape(pad_shape): function intersperse (line 41) | def intersperse(lst, item): function kl_divergence (line 47) | def kl_divergence(m_p, logs_p, m_q, logs_q): function rand_gumbel (line 54) | def rand_gumbel(shape): function rand_gumbel_like (line 60) | def rand_gumbel_like(x): function slice_segments (line 65) | def slice_segments(x, ids_str, segment_size=4): function rand_slice_segments (line 74) | def rand_slice_segments(x, x_lengths=None, segment_size=4): function rand_spec_segments (line 84) | def rand_spec_segments(x, x_lengths=None, segment_size=4): function get_timing_signal_1d (line 94) | def get_timing_signal_1d( function add_timing_signal_1d (line 110) | def add_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4): function cat_timing_signal_1d (line 116) | def cat_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4, axis... function subsequent_mask (line 122) | def subsequent_mask(length): function fused_add_tanh_sigmoid_multiply (line 128) | def fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels): function convert_pad_shape (line 137) | def convert_pad_shape(pad_shape): function shift_1d (line 143) | def shift_1d(x): function sequence_mask (line 148) | def sequence_mask(length, max_length=None): function generate_path (line 155) | def generate_path(duration, mask): function clip_grad_value_ (line 173) | def clip_grad_value_(parameters, clip_value, norm_type=2): FILE: modules/agent/svc/hubert/hubert_model.py class Hubert (line 11) | class Hubert(nn.Module): method __init__ (line 12) | def __init__(self, num_label_embeddings: int = 100, mask: bool = True): method mask (line 31) | def mask(self, x: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: method encode (line 38) | def encode( method logits (line 49) | def logits(self, x: torch.Tensor) -> torch.Tensor: method forward (line 57) | def forward(self, x: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: class HubertSoft (line 64) | class HubertSoft(Hubert): method __init__ (line 65) | def __init__(self): method units (line 69) | def units(self, wav: torch.Tensor) -> torch.Tensor: class FeatureExtractor (line 75) | class FeatureExtractor(nn.Module): method __init__ (line 76) | def __init__(self): method forward (line 87) | def forward(self, x: torch.Tensor) -> torch.Tensor: class FeatureProjection (line 98) | class FeatureProjection(nn.Module): method __init__ (line 99) | def __init__(self): method forward (line 105) | def forward(self, x: torch.Tensor) -> torch.Tensor: class PositionalConvEmbedding (line 112) | class PositionalConvEmbedding(nn.Module): method __init__ (line 113) | def __init__(self): method forward (line 124) | def forward(self, x: torch.Tensor) -> torch.Tensor: class TransformerEncoder (line 130) | class TransformerEncoder(nn.Module): method __init__ (line 131) | def __init__( method forward (line 140) | def forward( function _compute_mask (line 155) | def _compute_mask( function hubert_soft (line 210) | def hubert_soft( FILE: modules/agent/svc/hubert/hubert_model_onnx.py class Hubert (line 11) | class Hubert(nn.Module): method __init__ (line 12) | def __init__(self, num_label_embeddings: int = 100, mask: bool = True): method mask (line 31) | def mask(self, x: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: method encode (line 38) | def encode( method logits (line 49) | def logits(self, x: torch.Tensor) -> torch.Tensor: class HubertSoft (line 58) | class HubertSoft(Hubert): method __init__ (line 59) | def __init__(self): method units (line 62) | def units(self, wav: torch.Tensor) -> torch.Tensor: method forward (line 67) | def forward(self, x): class FeatureExtractor (line 70) | class FeatureExtractor(nn.Module): method __init__ (line 71) | def __init__(self): method forward (line 82) | def forward(self, x: torch.Tensor) -> torch.Tensor: class FeatureProjection (line 93) | class FeatureProjection(nn.Module): method __init__ (line 94) | def __init__(self): method forward (line 100) | def forward(self, x: torch.Tensor) -> torch.Tensor: class PositionalConvEmbedding (line 107) | class PositionalConvEmbedding(nn.Module): method __init__ (line 108) | def __init__(self): method forward (line 119) | def forward(self, x: torch.Tensor) -> torch.Tensor: class TransformerEncoder (line 125) | class TransformerEncoder(nn.Module): method __init__ (line 126) | def __init__( method forward (line 135) | def forward( function _compute_mask (line 150) | def _compute_mask( function hubert_soft (line 205) | def hubert_soft( FILE: modules/agent/svc/inference/infer_tool.py function read_temp (line 24) | def read_temp(file_name): function write_temp (line 47) | def write_temp(file_name, data): function timeit (line 52) | def timeit(func): function format_wav (line 62) | def format_wav(audio_path): function get_end_file (line 69) | def get_end_file(dir_path, end): function get_md5 (line 80) | def get_md5(content): function resize2d_f0 (line 84) | def resize2d_f0(x, target_len): function get_f0 (line 92) | def get_f0(x, p_len,f0_up_key=0): function clean_pitch (line 116) | def clean_pitch(input_pitch): function plt_pitch (line 123) | def plt_pitch(input_pitch): function f0_to_pitch (line 129) | def f0_to_pitch(ff): function fill_a_to_b (line 134) | def fill_a_to_b(a, b): function mkdir (line 140) | def mkdir(paths: list): class Svc (line 146) | class Svc(object): method __init__ (line 147) | def __init__(self, net_g_path, config_path, hubert_path="hubert/hubert... method load_model (line 173) | def load_model(self): method get_units (line 195) | def get_units(self, source, sr): method get_unit_pitch (line 206) | def get_unit_pitch(self, in_path, tran): method infer (line 215) | def infer(self, speaker_id, tran, raw_path): class RealTimeVC (line 303) | class RealTimeVC: method __init__ (line 304) | def __init__(self): method process (line 312) | def process(self, svc_model, speaker_id, f_pitch_change, input_wav_path): FILE: modules/agent/svc/inference/infer_tool_grad.py function resize2d_f0 (line 23) | def resize2d_f0(x, target_len): function get_f0 (line 31) | def get_f0(x, p_len,f0_up_key=0): function clean_pitch (line 55) | def clean_pitch(input_pitch): function plt_pitch (line 62) | def plt_pitch(input_pitch): function f0_to_pitch (line 68) | def f0_to_pitch(ff): function fill_a_to_b (line 73) | def fill_a_to_b(a, b): function mkdir (line 79) | def mkdir(paths: list): class VitsSvc (line 85) | class VitsSvc(object): method __init__ (line 86) | def __init__(self): method set_device (line 93) | def set_device(self, device): method loadCheckpoint (line 99) | def loadCheckpoint(self, path): method get_units (line 109) | def get_units(self, source, sr): method get_unit_pitch (line 116) | def get_unit_pitch(self, in_path, tran): method infer (line 125) | def infer(self, speaker_id, tran, raw_path): method inference (line 137) | def inference(self,srcaudio,chara,tran,slice_db): FILE: modules/agent/svc/inference/slicer.py class Slicer (line 6) | class Slicer: method __init__ (line 7) | def __init__(self, method _apply_slice (line 26) | def _apply_slice(self, waveform, begin, end): method slice (line 33) | def slice(self, waveform): function cut (line 120) | def cut(audio_path, db_thresh=-30, min_len=5000): function chunks2audio (line 131) | def chunks2audio(audio_path, chunks): FILE: modules/agent/svc/inference_main.py function infer_to (line 23) | def infer_to(spk, tran, voice,model): FILE: modules/agent/svc/models.py class ResidualCouplingBlock (line 13) | class ResidualCouplingBlock(nn.Module): method __init__ (line 14) | def __init__(self, method forward (line 36) | def forward(self, x, x_mask, g=None, reverse=False): class Encoder (line 46) | class Encoder(nn.Module): method __init__ (line 47) | def __init__(self, method forward (line 68) | def forward(self, x, x_lengths, g=None): class TextEncoder (line 79) | class TextEncoder(nn.Module): method __init__ (line 80) | def __init__(self, method forward (line 111) | def forward(self, x, x_lengths, f0=None): class DiscriminatorP (line 124) | class DiscriminatorP(torch.nn.Module): method __init__ (line 125) | def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=... method forward (line 139) | def forward(self, x): class DiscriminatorS (line 161) | class DiscriminatorS(torch.nn.Module): method __init__ (line 162) | def __init__(self, use_spectral_norm=False): method forward (line 175) | def forward(self, x): class MultiPeriodDiscriminator (line 189) | class MultiPeriodDiscriminator(torch.nn.Module): method __init__ (line 190) | def __init__(self, use_spectral_norm=False): method forward (line 198) | def forward(self, y, y_hat): class SpeakerEncoder (line 214) | class SpeakerEncoder(torch.nn.Module): method __init__ (line 215) | def __init__(self, mel_n_channels=80, model_num_layers=3, model_hidden... method forward (line 221) | def forward(self, mels): method compute_partial_slices (line 227) | def compute_partial_slices(self, total_frames, partial_frames, partial... method embed_utterance (line 235) | def embed_utterance(self, mel, partial_frames=128, partial_hop=64): class SynthesizerTrn (line 256) | class SynthesizerTrn(nn.Module): method __init__ (line 261) | def __init__(self, method forward (line 318) | def forward(self, c, f0, spec, g=None, mel=None, c_lengths=None, spec_... method infer (line 337) | def infer(self, c, f0, g=None, mel=None, c_lengths=None): FILE: modules/agent/svc/modules.py class LayerNorm (line 15) | class LayerNorm(nn.Module): method __init__ (line 16) | def __init__(self, channels, eps=1e-5): method forward (line 24) | def forward(self, x): class ConvReluNorm (line 30) | class ConvReluNorm(nn.Module): method __init__ (line 31) | def __init__(self, in_channels, hidden_channels, out_channels, kernel_... method forward (line 55) | def forward(self, x, x_mask): class DDSConv (line 65) | class DDSConv(nn.Module): method __init__ (line 69) | def __init__(self, channels, kernel_size, n_layers, p_dropout=0.): method forward (line 91) | def forward(self, x, x_mask, g=None): class WN (line 106) | class WN(torch.nn.Module): method __init__ (line 107) | def __init__(self, hidden_channels, kernel_size, dilation_rate, n_laye... method forward (line 143) | def forward(self, x, x_mask, g=None, **kwargs): method remove_weight_norm (line 173) | def remove_weight_norm(self): class ResBlock1 (line 182) | class ResBlock1(torch.nn.Module): method __init__ (line 183) | def __init__(self, channels, kernel_size=3, dilation=(1, 3, 5)): method forward (line 205) | def forward(self, x, x_mask=None): method remove_weight_norm (line 220) | def remove_weight_norm(self): class ResBlock2 (line 227) | class ResBlock2(torch.nn.Module): method __init__ (line 228) | def __init__(self, channels, kernel_size=3, dilation=(1, 3)): method forward (line 238) | def forward(self, x, x_mask=None): method remove_weight_norm (line 249) | def remove_weight_norm(self): class Log (line 254) | class Log(nn.Module): method forward (line 255) | def forward(self, x, x_mask, reverse=False, **kwargs): class Flip (line 265) | class Flip(nn.Module): method forward (line 266) | def forward(self, x, *args, reverse=False, **kwargs): class ElementwiseAffine (line 275) | class ElementwiseAffine(nn.Module): method __init__ (line 276) | def __init__(self, channels): method forward (line 282) | def forward(self, x, x_mask, reverse=False, **kwargs): class ResidualCouplingLayer (line 293) | class ResidualCouplingLayer(nn.Module): method __init__ (line 294) | def __init__(self, method forward (line 319) | def forward(self, x, x_mask, g=None, reverse=False): FILE: modules/agent/svc/utils.py function f0_to_coarse (line 27) | def f0_to_coarse(f0): function get_hubert_model (line 39) | def get_hubert_model(rank=None): function get_hubert_content (line 46) | def get_hubert_content(hmodel, y=None, path=None): function get_content (line 60) | def get_content(cmodel, y): function transform (line 68) | def transform(mel, height): # 68-92 function stretch (line 81) | def stretch(mel, width): # 0.5-2 function load_checkpoint (line 85) | def load_checkpoint(checkpoint_path, model, optimizer=None): function save_checkpoint (line 117) | def save_checkpoint(model, optimizer, learning_rate, iteration, checkpoi... function summarize (line 136) | def summarize(writer, global_step, scalars={}, histograms={}, images={},... function latest_checkpoint_path (line 147) | def latest_checkpoint_path(dir_path, regex="G_*.pth"): function plot_spectrogram_to_numpy (line 155) | def plot_spectrogram_to_numpy(spectrogram): function plot_alignment_to_numpy (line 181) | def plot_alignment_to_numpy(alignment, info=None): function load_wav_to_torch (line 210) | def load_wav_to_torch(full_path): function load_filepaths_and_text (line 215) | def load_filepaths_and_text(filename, split="|"): function get_hparams (line 221) | def get_hparams(init=True): function get_hparams_from_dir (line 251) | def get_hparams_from_dir(model_dir): function get_hparams_from_file (line 262) | def get_hparams_from_file(config_path): function check_git_hash (line 271) | def check_git_hash(model_dir): function get_logger (line 291) | def get_logger(model_dir, filename="train.log"): class HParams (line 306) | class HParams(): method __init__ (line 307) | def __init__(self, **kwargs): method keys (line 313) | def keys(self): method items (line 316) | def items(self): method values (line 319) | def values(self): method __len__ (line 322) | def __len__(self): method __getitem__ (line 325) | def __getitem__(self, key): method __setitem__ (line 328) | def __setitem__(self, key, value): method __contains__ (line 331) | def __contains__(self, key): method __repr__ (line 334) | def __repr__(self): FILE: modules/agent/svc/vdecoder/hifigan/env.py class AttrDict (line 5) | class AttrDict(dict): method __init__ (line 6) | def __init__(self, *args, **kwargs): function build_env (line 11) | def build_env(config, config_name, path): FILE: modules/agent/svc/vdecoder/hifigan/models.py function load_model (line 15) | def load_model(model_path, device='cuda'): class ResBlock1 (line 34) | class ResBlock1(torch.nn.Module): method __init__ (line 35) | def __init__(self, h, channels, kernel_size=3, dilation=(1, 3, 5)): method forward (line 58) | def forward(self, x): method remove_weight_norm (line 67) | def remove_weight_norm(self): class ResBlock2 (line 74) | class ResBlock2(torch.nn.Module): method __init__ (line 75) | def __init__(self, h, channels, kernel_size=3, dilation=(1, 3)): method forward (line 86) | def forward(self, x): method remove_weight_norm (line 93) | def remove_weight_norm(self): function padDiff (line 98) | def padDiff(x): class SineGen (line 101) | class SineGen(torch.nn.Module): method __init__ (line 117) | def __init__(self, samp_rate, harmonic_num=0, method _f02uv (line 130) | def _f02uv(self, f0): method _f02sine (line 135) | def _f02sine(self, f0_values): method forward (line 194) | def forward(self, f0): class SourceModuleHnNSF (line 227) | class SourceModuleHnNSF(torch.nn.Module): method __init__ (line 245) | def __init__(self, sampling_rate, harmonic_num=0, sine_amp=0.1, method forward (line 260) | def forward(self, x): class Generator (line 276) | class Generator(torch.nn.Module): method __init__ (line 277) | def __init__(self, h): method forward (line 313) | def forward(self, x, f0, g=None): method remove_weight_norm (line 342) | def remove_weight_norm(self): class DiscriminatorP (line 352) | class DiscriminatorP(torch.nn.Module): method __init__ (line 353) | def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=... method forward (line 366) | def forward(self, x): class MultiPeriodDiscriminator (line 388) | class MultiPeriodDiscriminator(torch.nn.Module): method __init__ (line 389) | def __init__(self, periods=None): method forward (line 396) | def forward(self, y, y_hat): class DiscriminatorS (line 412) | class DiscriminatorS(torch.nn.Module): method __init__ (line 413) | def __init__(self, use_spectral_norm=False): method forward (line 427) | def forward(self, x): class MultiScaleDiscriminator (line 440) | class MultiScaleDiscriminator(torch.nn.Module): method __init__ (line 441) | def __init__(self): method forward (line 453) | def forward(self, y, y_hat): function feature_loss (line 472) | def feature_loss(fmap_r, fmap_g): function discriminator_loss (line 481) | def discriminator_loss(disc_real_outputs, disc_generated_outputs): function generator_loss (line 495) | def generator_loss(disc_outputs): FILE: modules/agent/svc/vdecoder/hifigan/nvSTFT.py function load_wav_to_torch (line 14) | def load_wav_to_torch(full_path, target_sr=None, return_empty_on_excepti... function dynamic_range_compression (line 46) | def dynamic_range_compression(x, C=1, clip_val=1e-5): function dynamic_range_decompression (line 49) | def dynamic_range_decompression(x, C=1): function dynamic_range_compression_torch (line 52) | def dynamic_range_compression_torch(x, C=1, clip_val=1e-5): function dynamic_range_decompression_torch (line 55) | def dynamic_range_decompression_torch(x, C=1): class STFT (line 58) | class STFT(): method __init__ (line 59) | def __init__(self, sr=22050, n_mels=80, n_fft=1024, win_size=1024, hop... method get_mel (line 72) | def get_mel(self, y, center=False): method __call__ (line 106) | def __call__(self, audiopath): FILE: modules/agent/svc/vdecoder/hifigan/utils.py function plot_spectrogram (line 10) | def plot_spectrogram(spectrogram): function init_weights (line 22) | def init_weights(m, mean=0.0, std=0.01): function apply_weight_norm (line 28) | def apply_weight_norm(m): function get_padding (line 34) | def get_padding(kernel_size, dilation=1): function load_checkpoint (line 38) | def load_checkpoint(filepath, device): function save_checkpoint (line 46) | def save_checkpoint(filepath, obj): function del_old_checkpoints (line 52) | def del_old_checkpoints(cp_dir, prefix, n_models=2): function scan_checkpoint (line 62) | def scan_checkpoint(cp_dir, prefix): FILE: modules/agent/svc/vits_haruhi.py function set_model_path (line 6) | def set_model_path(path): function vits_haruhi (line 10) | def vits_haruhi(voice_style,filename, tran,model): FILE: modules/agent/tts_online.py function tts (line 14) | def tts(text, spd, lang, filename): function get_voice (line 64) | def get_voice(text, spd, filename, gen_type, lang): FILE: modules/agent/vits/attentions.py class Encoder (line 10) | class Encoder(nn.Module): method __init__ (line 11) | def __init__(self, hidden_channels, filter_channels, n_heads, n_layers... method forward (line 32) | def forward(self, x, x_mask): class Decoder (line 47) | class Decoder(nn.Module): method __init__ (line 48) | def __init__(self, hidden_channels, filter_channels, n_heads, n_layers... method forward (line 74) | def forward(self, x, x_mask, h, h_mask): class MultiHeadAttention (line 98) | class MultiHeadAttention(nn.Module): method __init__ (line 99) | def __init__(self, channels, out_channels, n_heads, p_dropout=0., wind... method forward (line 135) | def forward(self, x, c, attn_mask=None): method attention (line 145) | def attention(self, query, key, value, mask=None): method _matmul_with_relative_values (line 178) | def _matmul_with_relative_values(self, x, y): method _matmul_with_relative_keys (line 187) | def _matmul_with_relative_keys(self, x, y): method _get_relative_embeddings (line 196) | def _get_relative_embeddings(self, relative_embeddings, length): method _relative_position_to_absolute_position (line 211) | def _relative_position_to_absolute_position(self, x): method _absolute_position_to_relative_position (line 228) | def _absolute_position_to_relative_position(self, x): method _attention_bias_proximal (line 242) | def _attention_bias_proximal(self, length): class FFN (line 254) | class FFN(nn.Module): method __init__ (line 255) | def __init__(self, in_channels, out_channels, filter_channels, kernel_... method forward (line 274) | def forward(self, x, x_mask): method _causal_padding (line 284) | def _causal_padding(self, x): method _same_padding (line 293) | def _same_padding(self, x): FILE: modules/agent/vits/commons.py function script_method (line 7) | def script_method(fn, _rcb=None): function script (line 11) | def script(obj, optimize=True, _frames_up=0, _rcb=None): function init_weights (line 19) | def init_weights(m, mean=0.0, std=0.01): function get_padding (line 25) | def get_padding(kernel_size, dilation=1): function convert_pad_shape (line 29) | def convert_pad_shape(pad_shape): function intersperse (line 35) | def intersperse(lst, item): function kl_divergence (line 41) | def kl_divergence(m_p, logs_p, m_q, logs_q): function rand_gumbel (line 48) | def rand_gumbel(shape): function rand_gumbel_like (line 54) | def rand_gumbel_like(x): function slice_segments (line 59) | def slice_segments(x, ids_str, segment_size=4): function rand_slice_segments (line 68) | def rand_slice_segments(x, x_lengths=None, segment_size=4): function get_timing_signal_1d (line 78) | def get_timing_signal_1d( function add_timing_signal_1d (line 94) | def add_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4): function cat_timing_signal_1d (line 100) | def cat_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4, axis... function subsequent_mask (line 106) | def subsequent_mask(length): function fused_add_tanh_sigmoid_multiply (line 112) | def fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels): function convert_pad_shape (line 121) | def convert_pad_shape(pad_shape): function shift_1d (line 127) | def shift_1d(x): function sequence_mask (line 132) | def sequence_mask(length, max_length=None): function generate_path (line 139) | def generate_path(duration, mask): function clip_grad_value_ (line 157) | def clip_grad_value_(parameters, clip_value, norm_type=2): FILE: modules/agent/vits/mel_processing.py function dynamic_range_compression_torch (line 8) | def dynamic_range_compression_torch(x, C=1, clip_val=1e-5): function dynamic_range_decompression_torch (line 17) | def dynamic_range_decompression_torch(x, C=1): function spectral_normalize_torch (line 26) | def spectral_normalize_torch(magnitudes): function spectral_de_normalize_torch (line 31) | def spectral_de_normalize_torch(magnitudes): function spectrogram_torch (line 40) | def spectrogram_torch(y, n_fft, sampling_rate, hop_size, win_size, cente... function spec_to_mel_torch (line 62) | def spec_to_mel_torch(spec, n_fft, num_mels, sampling_rate, fmin, fmax): function mel_spectrogram_torch (line 74) | def mel_spectrogram_torch(y, n_fft, num_mels, sampling_rate, hop_size, w... FILE: modules/agent/vits/models.py class StochasticDurationPredictor (line 13) | class StochasticDurationPredictor(nn.Module): method __init__ (line 14) | def __init__(self, in_channels, filter_channels, kernel_size, p_dropou... method forward (line 46) | def forward(self, x, x_mask, w=None, g=None, reverse=False, noise_scal... class DurationPredictor (line 94) | class DurationPredictor(nn.Module): method __init__ (line 95) | def __init__(self, in_channels, filter_channels, kernel_size, p_dropou... method forward (line 114) | def forward(self, x, x_mask, g=None): class TextEncoder (line 131) | class TextEncoder(nn.Module): method __init__ (line 132) | def __init__(self, method forward (line 163) | def forward(self, x, x_lengths): class ResidualCouplingBlock (line 175) | class ResidualCouplingBlock(nn.Module): method __init__ (line 176) | def __init__(self, method forward (line 198) | def forward(self, x, x_mask, g=None, reverse=False): class PosteriorEncoder (line 208) | class PosteriorEncoder(nn.Module): method __init__ (line 209) | def __init__(self, method forward (line 230) | def forward(self, x, x_lengths, g=None): class Generator (line 240) | class Generator(torch.nn.Module): method __init__ (line 241) | def __init__(self, initial_channel, resblock, resblock_kernel_sizes, r... method forward (line 266) | def forward(self, x, g=None): method remove_weight_norm (line 287) | def remove_weight_norm(self): class DiscriminatorP (line 295) | class DiscriminatorP(torch.nn.Module): method __init__ (line 296) | def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=... method forward (line 310) | def forward(self, x): class DiscriminatorS (line 332) | class DiscriminatorS(torch.nn.Module): method __init__ (line 333) | def __init__(self, use_spectral_norm=False): method forward (line 346) | def forward(self, x): class MultiPeriodDiscriminator (line 360) | class MultiPeriodDiscriminator(torch.nn.Module): method __init__ (line 361) | def __init__(self, use_spectral_norm=False): method forward (line 369) | def forward(self, y, y_hat): class SynthesizerTrn (line 386) | class SynthesizerTrn(nn.Module): method __init__ (line 391) | def __init__(self, method forward (line 455) | def forward(self, x, x_lengths, y, y_lengths, sid=None): method infer (line 495) | def infer(self, x, x_lengths, sid=None, noise_scale=1, length_scale=1,... method voice_conversion (line 521) | def voice_conversion(self, y, y_lengths, sid_src, sid_tgt): FILE: modules/agent/vits/modules.py class LayerNorm (line 17) | class LayerNorm(nn.Module): method __init__ (line 18) | def __init__(self, channels, eps=1e-5): method forward (line 26) | def forward(self, x): class ConvReluNorm (line 32) | class ConvReluNorm(nn.Module): method __init__ (line 33) | def __init__(self, in_channels, hidden_channels, out_channels, kernel_... method forward (line 57) | def forward(self, x, x_mask): class DDSConv (line 67) | class DDSConv(nn.Module): method __init__ (line 71) | def __init__(self, channels, kernel_size, n_layers, p_dropout=0.): method forward (line 93) | def forward(self, x, x_mask, g=None): class WN (line 108) | class WN(torch.nn.Module): method __init__ (line 109) | def __init__(self, hidden_channels, kernel_size, dilation_rate, n_laye... method forward (line 145) | def forward(self, x, x_mask, g=None, **kwargs): method remove_weight_norm (line 175) | def remove_weight_norm(self): class ResBlock1 (line 184) | class ResBlock1(torch.nn.Module): method __init__ (line 185) | def __init__(self, channels, kernel_size=3, dilation=(1, 3, 5)): method forward (line 207) | def forward(self, x, x_mask=None): method remove_weight_norm (line 222) | def remove_weight_norm(self): class ResBlock2 (line 229) | class ResBlock2(torch.nn.Module): method __init__ (line 230) | def __init__(self, channels, kernel_size=3, dilation=(1, 3)): method forward (line 240) | def forward(self, x, x_mask=None): method remove_weight_norm (line 251) | def remove_weight_norm(self): class Log (line 256) | class Log(nn.Module): method forward (line 257) | def forward(self, x, x_mask, reverse=False, **kwargs): class Flip (line 267) | class Flip(nn.Module): method forward (line 268) | def forward(self, x, *args, reverse=False, **kwargs): class ElementwiseAffine (line 277) | class ElementwiseAffine(nn.Module): method __init__ (line 278) | def __init__(self, channels): method forward (line 284) | def forward(self, x, x_mask, reverse=False, **kwargs): class ResidualCouplingLayer (line 295) | class ResidualCouplingLayer(nn.Module): method __init__ (line 296) | def __init__(self, method forward (line 321) | def forward(self, x, x_mask, g=None, reverse=False): class ConvFlow (line 343) | class ConvFlow(nn.Module): method __init__ (line 344) | def __init__(self, in_channels, filter_channels, kernel_size, n_layers... method forward (line 360) | def forward(self, x, x_mask, g=None, reverse=False): FILE: modules/agent/vits/monotonic_align/__init__.py function maximum_path (line 7) | def maximum_path(neg_cent, mask): FILE: modules/agent/vits/monotonic_align/core.py function maximum_path_jit (line 6) | def maximum_path_jit(paths, values, t_ys, t_xs): FILE: modules/agent/vits/text/__init__.py function text_to_sequence (line 11) | def text_to_sequence(text, symbols, cleaner_names): function cleaned_text_to_sequence (line 31) | def cleaned_text_to_sequence(cleaned_text): function sequence_to_text (line 42) | def sequence_to_text(sequence): function _clean_text (line 51) | def _clean_text(text, cleaner_names): FILE: modules/agent/vits/text/cleaners.py function expand_abbreviations (line 207) | def expand_abbreviations(text): function lowercase (line 213) | def lowercase(text): function collapse_whitespace (line 217) | def collapse_whitespace(text): function convert_to_ascii (line 221) | def convert_to_ascii(text): function japanese_to_romaji_with_accent (line 225) | def japanese_to_romaji_with_accent(text): function latin_to_hangul (line 267) | def latin_to_hangul(text): function divide_hangul (line 273) | def divide_hangul(text): function hangul_number (line 279) | def hangul_number(num, sino=True): function number_to_hangul (line 358) | def number_to_hangul(text): function number_to_chinese (line 376) | def number_to_chinese(text): function chinese_to_bopomofo (line 383) | def chinese_to_bopomofo(text): function latin_to_bopomofo (line 401) | def latin_to_bopomofo(text): function bopomofo_to_romaji (line 407) | def bopomofo_to_romaji(text): function basic_cleaners (line 413) | def basic_cleaners(text): function transliteration_cleaners (line 420) | def transliteration_cleaners(text): function japanese_cleaners (line 428) | def japanese_cleaners(text): function japanese_cleaners2 (line 435) | def japanese_cleaners2(text): function korean_cleaners (line 439) | def korean_cleaners(text): function chinese_cleaners (line 450) | def chinese_cleaners(text): function zh_ja_mixture_cleaners (line 460) | def zh_ja_mixture_cleaners(text): FILE: modules/agent/vits/transforms.py function piecewise_rational_quadratic_transform (line 12) | def piecewise_rational_quadratic_transform(inputs, function searchsorted (line 47) | def searchsorted(bin_locations, inputs, eps=1e-6): function unconstrained_rational_quadratic_spline (line 55) | def unconstrained_rational_quadratic_spline(inputs, function rational_quadratic_spline (line 96) | def rational_quadratic_spline(inputs, FILE: modules/agent/vits/utils.py function load_checkpoint (line 17) | def load_checkpoint(checkpoint_path, model, optimizer=None): function plot_spectrogram_to_numpy (line 45) | def plot_spectrogram_to_numpy(spectrogram): function plot_alignment_to_numpy (line 71) | def plot_alignment_to_numpy(alignment, info=None): function load_audio_to_torch (line 100) | def load_audio_to_torch(full_path, target_sampling_rate): function load_filepaths_and_text (line 105) | def load_filepaths_and_text(filename, split="|"): function get_hparams (line 111) | def get_hparams(init=True): function get_hparams_from_dir (line 141) | def get_hparams_from_dir(model_dir): function get_hparams_from_file (line 152) | def get_hparams_from_file(config_path): function check_git_hash (line 161) | def check_git_hash(model_dir): function get_logger (line 181) | def get_logger(model_dir, filename="train.log"): class HParams (line 196) | class HParams(): method __init__ (line 197) | def __init__(self, **kwargs): method keys (line 203) | def keys(self): method items (line 206) | def items(self): method values (line 209) | def values(self): method __len__ (line 212) | def __len__(self): method __getitem__ (line 215) | def __getitem__(self, key): method __setitem__ (line 218) | def __setitem__(self, key, value): method __contains__ (line 221) | def __contains__(self, key): method __repr__ (line 224) | def __repr__(self): FILE: modules/agent/vits/vits.py function save_as_wav (line 16) | def save_as_wav(data, filename, sample_rate): function get_text (line 42) | def get_text(text, hps, is_symbol): function create_tts_fn (line 50) | def create_tts_fn(net_g_ms, speaker_id): function tts_fnD (line 75) | def tts_fnD(net_g_ms, speaker_id, text, language, noise_scale, noise_sca... function create_to_symbol_fn (line 96) | def create_to_symbol_fn(hps): function change_lang (line 109) | def change_lang(language): function model_switch (line 118) | def model_switch(models, text, path): function vits_factory (line 129) | def vits_factory(text, outputPath, outputLanguage): FILE: modules/apply/role_play.py function image_to_base64 (line 18) | def image_to_base64(file_path): class role_play (line 32) | class role_play(): method __init__ (line 71) | def __init__(self): method set_llm (line 82) | def set_llm(self,params): method setv (line 114) | def setv(self,params): method make_message (line 180) | def make_message(self,text: str): method cut_memory (line 190) | def cut_memory(self): method message_period_to_now (line 198) | def message_period_to_now(self,message): method send_emoticon (line 206) | def send_emoticon(self, text: str): method talk (line 250) | def talk(self,text): method clear_history (line 336) | def clear_history(self): FILE: modules/model/Embedding/base.py class ModelInfo (line 19) | class ModelInfo: function load_model (line 24) | def load_model( function train_model (line 64) | def train_model( function eval_model (line 123) | def eval_model( FILE: modules/model/Embedding/text2vec/dataset/base.py class BaseDataset (line 10) | class BaseDataset(Dataset): method __init__ (line 11) | def __init__(self, tokenizer: PreTrainedTokenizer, data: list, max_len... method __len__ (line 16) | def __len__(self): method text_2_id (line 19) | def text_2_id(self, text: str): method __getitem__ (line 23) | def __getitem__(self, index: int): method load_train_data (line 28) | def load_train_data(path): method load_test_data (line 50) | def load_test_data(path): FILE: modules/model/Embedding/text2vec/dataset/bert.py class BertMatchTrainDataset (line 11) | class BertMatchTrainDataset(BaseDataset): method __init__ (line 12) | def __init__(self, tokenizer: PreTrainedTokenizer, data: list, max_len... method text_2_id (line 15) | def text_2_id(self, text_1: str, text_2: str = None): method __getitem__ (line 19) | def __getitem__(self, index: int): class BertMatchTestDataset (line 24) | class BertMatchTestDataset(BaseDataset): method __init__ (line 25) | def __init__(self, tokenizer: PreTrainedTokenizer, data: list, max_len... method text_2_id (line 28) | def text_2_id(self, text_1: str, text_2: str = None): method __getitem__ (line 32) | def __getitem__(self, index: int): FILE: modules/model/Embedding/text2vec/dataset/cosent.py class CosentTrainDataset (line 11) | class CosentTrainDataset(BaseDataset): method __init__ (line 12) | def __init__(self, tokenizer: PreTrainedTokenizer, data: list, max_len... method __getitem__ (line 15) | def __getitem__(self, index: int): method load_train_data (line 20) | def load_train_data(path): class CosentTestDataset (line 38) | class CosentTestDataset(BaseDataset): method __init__ (line 39) | def __init__(self, tokenizer: PreTrainedTokenizer, data: list, max_len... FILE: modules/model/Embedding/text2vec/dataset/sentencebert.py class SentenceBertTrainDataset (line 11) | class SentenceBertTrainDataset(BaseDataset): method __init__ (line 12) | def __init__(self, tokenizer: PreTrainedTokenizer, data: list, max_len... class SentenceBertTestDataset (line 16) | class SentenceBertTestDataset(BaseDataset): method __init__ (line 17) | def __init__(self, tokenizer: PreTrainedTokenizer, data: list, max_len... FILE: modules/model/Embedding/text2vec/model/base.py class BaseModel (line 25) | class BaseModel: method __init__ (line 26) | def __init__( method __str__ (line 71) | def __str__(self): method clear (line 80) | def clear(self): method save_model (line 84) | def save_model(self, output_dir, model, results=None): class BaseSentenceModel (line 102) | class BaseSentenceModel(BaseModel): method __init__ (line 103) | def __init__( method get_sentence_embedding_dimension (line 131) | def get_sentence_embedding_dimension(self): method get_sentence_embeddings (line 134) | def get_sentence_embeddings(self, input_ids, attention_mask, token_typ... method encode (line 169) | def encode( method evaluate (line 213) | def evaluate(self, eval_dataset, output_dir: str = None, batch_size: i... method eval_model (line 260) | def eval_model(self, eval_dataset: Dataset, output_dir: str = None, ve... FILE: modules/model/Embedding/text2vec/model/bert.py class BertMatchModel (line 22) | class BertMatchModel(BaseModel): class BertMatchModule (line 23) | class BertMatchModule(nn.Module): method __init__ (line 24) | def __init__( method forward (line 39) | def forward(self, input_ids, token_type_ids, attention_mask, labels=... method __init__ (line 47) | def __init__( method evaluate (line 69) | def evaluate(self, eval_dataset, output_dir: str = None, batch_size: i... method eval_model (line 109) | def eval_model(self, eval_dataset: Dataset, output_dir: str = None, ve... method train (line 118) | def train( method save_best_or_last_model (line 260) | def save_best_or_last_model(self, eval_dataset,results,final_model,bes... FILE: modules/model/Embedding/text2vec/model/cosent.py class CosentModel (line 22) | class CosentModel(BaseSentenceModel): method __init__ (line 23) | def __init__( method calc_loss (line 41) | def calc_loss(self, y_true, y_pred): method train (line 63) | def train( method save_best_or_last_model (line 209) | def save_best_or_last_model(self, eval_dataset,results,final_model,bes... FILE: modules/model/Embedding/text2vec/model/sentencebert.py class SentenceBertModel (line 22) | class SentenceBertModel(BaseSentenceModel): method __init__ (line 23) | def __init__( method concat_embeddings (line 41) | def concat_embeddings(self, source_embeddings, target_embeddings): method calc_loss (line 49) | def calc_loss(self, y_true, y_pred): method train (line 53) | def train( method save_best_or_last_model (line 206) | def save_best_or_last_model(self, eval_dataset,results,final_model,bes... FILE: modules/model/Embedding/text2vec/utils/base.py function set_seed (line 11) | def set_seed(seed): function l2_normalize (line 23) | def l2_normalize(vecs): function compute_spearmanr (line 31) | def compute_spearmanr(x, y): function compute_pearsonr (line 38) | def compute_pearsonr(x, y): class EncoderType (line 45) | class EncoderType(Enum): method __str__ (line 52) | def __str__(self): method from_string (line 56) | def from_string(s): class ModelArch (line 63) | class ModelArch(Enum): method __str__ (line 68) | def __str__(self): method from_string (line 72) | def from_string(s): FILE: modules/model/LLM/train.py function evaluate (line 35) | def evaluate(args, model, eval_dataloader, accelerator): function get_train_valid_data (line 65) | def get_train_valid_data(dir): function read_json (line 86) | def read_json(path): function parse_args (line 91) | def parse_args(): function main (line 258) | def main(): function save_model (line 481) | def save_model(args, model, eval_dataloader, accelerator, epoch, best_me... FILE: modules/model/LLM/train_dpo.py function evaluate (line 37) | def evaluate(model, eval_dataloader, accelerator): function get_train_valid_data (line 75) | def get_train_valid_data(dir): function read_json (line 96) | def read_json(path): function parse_args (line 101) | def parse_args(): function dpo_preprocess (line 266) | def dpo_preprocess(model_name_or_path, example, tokenizer, max_length): function dpo_collator (line 293) | def dpo_collator(features, tokenizer): function get_batch_logps (line 325) | def get_batch_logps( function concatenated_forward (line 357) | def concatenated_forward(model, batch): function dpo_loss (line 378) | def dpo_loss( function train_batch (line 415) | def train_batch( function main (line 445) | def main(): function save_model (line 662) | def save_model(args, model, eval_dataloader, accelerator, epoch, best_me... FILE: modules/model/LLM/train_dpo_luancher.py function main (line 5) | def main(): FILE: modules/model/LLM/train_luancher.py function main (line 5) | def main(): FILE: modules/model/SparkApi.py class Ws_Param (line 18) | class Ws_Param(object): method __init__ (line 20) | def __init__(self, APPID, APIKey, APISecret, gpt_url): method create_url (line 29) | def create_url(self): class Spark_Api (line 63) | class Spark_Api(object): method __init__ (line 64) | def __init__(self, appid, method create_ws (line 82) | def create_ws(self): method _call (line 90) | def _call(self, messages): method on_error (line 102) | def on_error(self, ws, error): method on_close (line 109) | def on_close(self, ws, *args): method on_open (line 116) | def on_open(self, ws, *args): method run (line 119) | def run(self, ws, *args): method on_message (line 124) | def on_message(self, ws, message): method gen_params (line 150) | def gen_params(self): FILE: modules/model/emb_auto.py class AutoEmb (line 13) | class AutoEmb(): method __init__ (line 14) | def __init__(self,embedding_model): method cos_sim (line 22) | def cos_sim(self, a, b): method get_embedding (line 26) | def get_embedding(self, text): FILE: modules/model/llm_auto.py function post_process (line 21) | def post_process(text): class AutoLM (line 25) | class AutoLM(LLM): method __init__ (line 39) | def __init__(self): method _llm_type (line 43) | def _llm_type(self) -> str: method _call (line 46) | def _call(self, method load_model (line 154) | def load_model(self, max_length, top_p=0.7, temperature=0.95, method clear (line 204) | def clear(self): FILE: modules/model/prompt_generator.py class prompt_generator (line 3) | class prompt_generator(object): method __init__ (line 4) | def __init__(self) -> None: method generate_openai_prompt (line 7) | def generate_openai_prompt(self,message='',system_message='',history=N... method generate_ernie_prompt (line 18) | def generate_ernie_prompt(self,message='',history=None): method generate_chatglm_prompt (line 26) | def generate_chatglm_prompt(self,message='',history=None): method generate_spark_prompt (line 34) | def generate_spark_prompt(self,message='',history=None): method generate_ali_prompt (line 42) | def generate_ali_prompt(self,message='',history=None): method generate_aihubmix_prompt (line 49) | def generate_aihubmix_prompt(self,message='',history=None): FILE: modules/model/use_api.py function get_ernie_access_token (line 27) | def get_ernie_access_token(API_Key, Secret_Key): class qwen_api (line 42) | class qwen_api(): method __init__ (line 43) | def __init__(self): method get_embedding (line 46) | def get_embedding(self): method setv (line 49) | def setv(self, api_key, top_p=0.8, top_k=100.0, kuake_search=False): method get_ones (line 64) | def get_ones(self, message): method get_ones_stream (line 102) | def get_ones_stream(self, message): method cut_memory (line 141) | def cut_memory(self): method talk (line 156) | def talk(self, message, stream=False): method clear_history (line 228) | def clear_history(self): class spark_api (line 232) | class spark_api(): method __init__ (line 233) | def __init__(self): method get_embedding (line 236) | def get_embedding(self): method setv (line 239) | def setv(self, spark_api_key=None, spark_api_secret=None, spark_appid=... method get_ones (line 280) | def get_ones(self, message): method get_ones_stream (line 307) | def get_ones_stream(self, message): method cut_memory (line 333) | def cut_memory(self): method talk (line 348) | def talk(self, message, stream=False): method clear_history (line 403) | def clear_history(self): class aihubmix_api (line 407) | class aihubmix_api(): method __init__ (line 408) | def __init__(self): method get_embedding (line 422) | def get_embedding(self): method setv (line 425) | def setv(self, aihubmix_api_key=None, aihubmix_app_code=None): method get_ones (line 443) | def get_ones(self, message): method get_ones_stream (line 470) | def get_ones_stream(self, message): method cut_memory (line 496) | def cut_memory(self): method talk (line 511) | def talk(self, message, stream=False): method clear_history (line 566) | def clear_history(self): class chatglm_api (line 569) | class chatglm_api(): method __init__ (line 570) | def __init__(self): method get_embedding (line 573) | def get_embedding(self): method setv (line 576) | def setv(self, api_key=None, temperature=0.95, top_p=0.7, chatglm_type... method get_ones (line 592) | def get_ones(self, message): method get_ones_stream (line 620) | def get_ones_stream(self, message): method cut_memory (line 663) | def cut_memory(self): method talk (line 678) | def talk(self, message, stream=False): method clear_history (line 730) | def clear_history(self): class ernie_api (line 734) | class ernie_api(): method __init__ (line 735) | def __init__(self) -> None: method get_embedding (line 738) | def get_embedding(self): method setv (line 741) | def setv(self, ernie_api_key=None, ernie_secret_key=None, ernie_temper... method get_ones (line 787) | def get_ones(self, message): method get_ones_stream (line 826) | def get_ones_stream(self, message): method cut_memory (line 867) | def cut_memory(self): method talk (line 882) | def talk(self, message, stream=False): method clear_history (line 934) | def clear_history(self): class openai_api (line 938) | class openai_api(): method __init__ (line 939) | def __init__(self): method get_embedding (line 942) | def get_embedding(self, openai_api_key, port='', api_base='', api_mode... method setv (line 961) | def setv(self, openai_api_key='', api_base='', temperature=0.95, max_t... method get_ones (line 1042) | def get_ones(self, text): method get_ones_stream (line 1066) | def get_ones_stream(self, text): method cut_memory (line 1092) | def cut_memory(self): method talk (line 1107) | def talk(self, message, stream=False): method clear_history (line 1149) | def clear_history(self): class claude (line 1153) | class claude: method __init__ (line 1154) | def __init__(self): method setv (line 1157) | def setv(self, cookie = ''): method talk (line 1172) | def talk(self, prompt, stream = False, attachment = None): method upload_attachment (line 1227) | def upload_attachment(self, file_path): method clear_history (line 1267) | def clear_history(self): method get_organization_id (line 1270) | def get_organization_id(self): method get_content_type (line 1288) | def get_content_type(self, file_path): method generate_uuid (line 1301) | def generate_uuid(self): method create_new_chat (line 1307) | def create_new_chat(self): FILE: ui/apply.py function apply_page (line 6) | def apply_page(localizer): FILE: ui/apply_knowledge.py function get_directories (line 8) | def get_directories(path,unuse): function refresh_directories_faiss (line 30) | def refresh_directories_faiss(): function refresh_directories_mysql (line 41) | def refresh_directories_mysql(): function model_select (line 46) | def model_select(api, model, lora): function api_select (line 53) | def api_select(api, model, lora): function emb_model_select (line 73) | def emb_model_select(emb_api_list,emb_model_list): function emb_api_select (line 79) | def emb_api_select(emb_api_list,emb_model_list): function mysql_model_select (line 89) | def mysql_model_select(api, model): function mysql_api_select (line 95) | def mysql_api_select(api, model): function load_faiss_params (line 116) | def load_faiss_params(api_list, model_list, lora_list, *args): function load_embedding_params (line 176) | def load_embedding_params(doc1,k,score_threshold,chunk_size,chunk_conent... function load_mysql_params (line 202) | def load_mysql_params(mysql_api_list,mysql_model_list,*args): function get_databases (line 261) | def get_databases(host,user,password,port): function show_tables (line 266) | def show_tables(host,user,password,port,database): function show_table_data (line 271) | def show_table_data(host,user,password,port,database,table): function vec_search (line 285) | def vec_search(faiss_user_input, faiss_chatbot, history,faiss_net,faiss_... function apply_knowledge (line 291) | def apply_knowledge(localizer): FILE: ui/apply_text_image_generation.py function get_index (line 6) | def get_index(evt: gr.SelectData): function apply_text_image_generation (line 10) | def apply_text_image_generation(localizer): FILE: ui/apply_video.py function get_file (line 6) | def get_file(path,unuse,ftype): function get_directories (line 8) | def get_directories(path,unuse): function refresh_file (line 39) | def refresh_file(): function model_select (line 52) | def model_select(api, model, lora): function api_select (line 59) | def api_select(api, model, lora): function emb_model_select (line 69) | def emb_model_select(emb_api_list,emb_model_list): function emb_api_select (line 75) | def emb_api_select(emb_api_list,emb_model_list): function load_llm_params (line 85) | def load_llm_params(api_list, model_list, lora_list, *args): function load_config_params (line 114) | def load_config_params(play,time_c,emoticon,user_name,net,search,search_... function switch_show_type (line 154) | def switch_show_type(show_type): function switch_background (line 169) | def switch_background(path_list): class Avtar (line 185) | class Avtar(): method __init__ (line 186) | def __init__(self): method apply_video (line 189) | def apply_video(self,localizer): FILE: ui/chat.py function get_directories (line 7) | def get_directories(path, unuse): function refresh_prompt (line 39) | def refresh_prompt(choose_category,language): function refresh_directories (line 61) | def refresh_directories(): function refresh_embedding_directories (line 69) | def refresh_embedding_directories(): function model_select (line 77) | def model_select(api, model, lora): function api_page_clear (line 84) | def api_page_clear(): function api_select (line 89) | def api_select(api, model, lora): function load_claude_params (line 112) | def load_claude_params(api_list, model_list, lora_list,user_input, submi... function load_params (line 117) | def load_params(api_list, model_list, lora_list, *args): function show_api_params_add_api (line 186) | def show_api_params_add_api(api_list): function show_knowledge (line 223) | def show_knowledge(use_knowledge): function emb_model_select (line 230) | def emb_model_select(emb_api, emb_model): function emb_api_select (line 237) | def emb_api_select(emb_api, emb_model): function load_api_page_params (line 248) | def load_api_page_params(api_api_list, api_emb_api_list, api_emb_model_l... function clear_history (line 384) | def clear_history(): function chat_page (line 389) | def chat_page(localizer): FILE: ui/data.py function get_directories (line 10) | def get_directories(path,unuse): function emb_model_select (line 29) | def emb_model_select(emb_api_list,emb_model_list): function emb_api_select (line 35) | def emb_api_select(emb_api_list,emb_model_list): function data_page (line 45) | def data_page(localizer): FILE: ui/train.py function get_file (line 10) | def get_file(path): function get_directories (line 13) | def get_directories(path,unuse): function switch_model_arch (line 33) | def switch_model_arch(model): function add_models (line 38) | def add_models(api_list,model_list): function show_emb_params_add_api (line 41) | def show_emb_params_add_api(api_list,model_list): function load_emb_val_params (line 53) | def load_emb_val_params(api_list,model_list,*args): function train_page (line 78) | def train_page(localizer): FILE: utils/MyFAISS.py class MyFAISS (line 13) | class MyFAISS(FAISS, VectorStore): method __init__ (line 18) | def __init__( method seperate_list (line 30) | def seperate_list(self, ls: List[int]) -> List[List[int]]: method similarity_search_with_score_by_vector (line 42) | def similarity_search_with_score_by_vector( method delete_doc (line 106) | def delete_doc(self, source: str or List[str],docs): method list_docs (line 149) | def list_docs(self): method add_files (line 161) | def add_files(self,files,database_name): FILE: utils/chinese_text_splitter.py class ChineseTextSplitter (line 6) | class ChineseTextSplitter(CharacterTextSplitter): method __init__ (line 7) | def __init__(self, pdf: bool = False, sentence_size: int = 100, **kwar... method split_text1 (line 12) | def split_text1(self, text: str) -> List[str]: method split_text (line 26) | def split_text(self, text: str) -> List[str]: ##此处需要进一步优化逻辑 FILE: utils/dl_data.py function download_org_data (line 9) | def download_org_data(a,download_path): function download_jsonl_data (line 21) | def download_jsonl_data(a,download_path,type_=None): FILE: utils/embedding_base_model.py class embedding_base_model (line 6) | class embedding_base_model: method __init__ (line 7) | def __init__( method clear (line 18) | def clear(self): method load (line 23) | def load(self, model_name_or_path: str, embed_arch:str, device: str = ... method reload (line 27) | def reload(self, model_name_or_path: str, device: str = None): method train (line 32) | def train( method evaluate (line 74) | def evaluate( FILE: utils/embedding_val.py class embedding_visualization_plot (line 22) | class embedding_visualization_plot(): method __init__ (line 23) | def __init__(self): method get_directories (line 41) | def get_directories(self, path, unuse): method refresh_directories (line 44) | def refresh_directories(self): method check_text_lenth (line 52) | def check_text_lenth(self,text,label): method upload_data (line 63) | def upload_data(self, temp_file): method plot (line 126) | def plot(self, api_list,model_list,params): class TSNE_Plot (line 152) | class TSNE_Plot(): method __init__ (line 177) | def __init__(self, sentence, embed_intup_list, label, model_name, mo... method generate_colormap (line 188) | def generate_colormap(self, n_labels): method show_text (line 200) | def show_text(self, text): method init_df (line 210) | def init_df(self): method format_data (line 218) | def format_data(self): method calculate_tsne (line 231) | def calculate_tsne(self): # 返回最终的二维嵌入结果,以用于可视化。 method plot (line 255) | def plot(self, return_fig=False): method tsne_plot (line 292) | def tsne_plot(self, return_fig=True): FILE: utils/language_switch_utils.py class Localizer (line 8) | class Localizer: method __init__ (line 9) | def __init__(self,language): method __call__ (line 23) | def __call__(self, key): FILE: utils/local_doc.py class local_doc_qa (line 15) | class local_doc_qa(): method __init__ (line 24) | def __init__(self): method clear (line 34) | def clear(self): method set_v (line 38) | def set_v(self,params): method generate_prompt (line 58) | def generate_prompt(self,related_docs,query) -> str: method load (line 63) | def load(self,params): method get_similarity (line 94) | def get_similarity(self,query): method load_file (line 99) | def load_file(self,filepath, sentence_size=100): method upload_data (line 121) | def upload_data(self,emb_api_list,emb_model_list,files,vs_name,openai_... method handle_database_selected (line 170) | def handle_database_selected(self,create_emb_api_list,create_emb_model... method handle_vector_database_file_delete (line 216) | def handle_vector_database_file_delete(self,files,database): method handle_add_file_to_vector_database (line 230) | def handle_add_file_to_vector_database(self,files,database_name): method get_directories (line 247) | def get_directories(self,path, unuse): method refresh_emb (line 250) | def refresh_emb(self): method refresh_vector (line 256) | def refresh_vector(self): method clear_mysql (line 273) | def clear_mysql(self): FILE: utils/parallel_api.py class api_thread (line 9) | class api_thread(Thread): method __init__ (line 10) | def __init__(self, params): method setv (line 18) | def setv(self, chatbot, api_stream, net, search, search_key, result_le... method run (line 28) | def run(self): method stop (line 44) | def stop(self): method stopped (line 49) | def stopped(self): class Parallel_api (line 53) | class Parallel_api(object): method __init__ (line 54) | def __init__(self): method setv (line 57) | def setv(self, params): method call_openai (line 189) | def call_openai(self, user_input, chatbot, api_stream, net, search, se... method call_openai_knowledge (line 203) | def call_openai_knowledge(self, user_input, chatbot, api_stream, net, ... method call_azure (line 217) | def call_azure(self, user_input, chatbot, api_stream, net, search, sea... method call_azure_knowledge (line 231) | def call_azure_knowledge(self, user_input, chatbot, api_stream, net, s... method call_ernie (line 246) | def call_ernie(self, user_input, chatbot, api_stream, net, search, sea... method call_ernie_knowledge (line 260) | def call_ernie_knowledge(self, user_input, chatbot, api_stream, net, s... method call_ernie_turbo (line 274) | def call_ernie_turbo(self, user_input, chatbot, api_stream, net, searc... method call_ernie_turbo_knowledge (line 288) | def call_ernie_turbo_knowledge(self, user_input, chatbot, api_stream, ... method call_chatglm (line 304) | def call_chatglm(self, user_input, chatbot, api_stream, net, search, s... method call_chatglm_kmowledge (line 318) | def call_chatglm_kmowledge(self, user_input, chatbot, api_stream, net,... method call_spark (line 333) | def call_spark(self, user_input, chatbot, api_stream, net, search, sea... method call_spark_knowledge (line 348) | def call_spark_knowledge(self, user_input, chatbot, api_stream, net, s... method call_ali (line 362) | def call_ali(self, user_input, chatbot, api_stream, net, search, searc... method call_ali_knowledge (line 375) | def call_ali_knowledge(self, user_input, chatbot, api_stream, net, sea... method clear_history (line 388) | def clear_history(self): method clear (line 394) | def clear(self): class ParallelLocalModel (line 400) | class ParallelLocalModel(): method __init__ (line 401) | def __init__(self): method handle_local_model_selected (line 406) | def handle_local_model_selected(): method load_embedding_params (line 409) | def load_embedding_params(self, status, switch_chatbot, doc1, k, score... method clear (line 446) | def clear(self, switch_chatbot, status): FILE: utils/svc_utils.py class SVC (line 6) | class SVC: method __init__ (line 12) | def __init__(self): method load (line 16) | def load(self, voice_style): method voice_process (line 32) | def voice_process(self, voice_style, filename): FILE: utils/text_image_utils.py class TextImage (line 14) | class TextImage: method __init__ (line 15) | def __init__(self): method setv (line 32) | def setv(self, channel_id, authorization, application_id, guild_id, se... method extract_uuid (line 48) | def extract_uuid(filename): method get_new_image (line 56) | def get_new_image(self): method get_whole_image (line 75) | def get_whole_image(self,prompt): method upscale (line 149) | def upscale(self): FILE: utils/ui_utils.py function parse_text (line 40) | def parse_text(text): class StoppableThread (line 81) | class StoppableThread(threading.Thread): method __init__ (line 86) | def __init__(self): method setv (line 95) | def setv(self, openai_api, timesleep, answer_list, type_=None): method stop (line 101) | def stop(self): method stopped (line 105) | def stopped(self): method run (line 108) | def run(self): class data_process (line 135) | class data_process(): method __init__ (line 151) | def __init__(self): method save_data (line 162) | def save_data(self, a, b): method skip_qa (line 176) | def skip_qa(self, a): method save_embed_data (line 182) | def save_embed_data(self, sentence1, sentence2, label): method back_embed_json (line 201) | def back_embed_json(self): method empty_embed_json (line 206) | def empty_embed_json(self): method empty_embed_upload (line 210) | def empty_embed_upload(self): method empty_embed_exchange_upload (line 214) | def empty_embed_exchange_upload(self): method reset_state (line 218) | def reset_state(self): method reset_upload (line 222) | def reset_upload(self): method reset_upload_out (line 226) | def reset_upload_out(self): method reset_state_doc (line 230) | def reset_state_doc(self): method back_state (line 235) | def back_state(self): method upload_data (line 240) | def upload_data(self, temp_file): method upload_data_out (line 246) | def upload_data_out(self, temp_file, a, b, models2, models3): method upload_embed_data (line 271) | def upload_embed_data(self, embed_upload): method upload_embed_exchange_data (line 285) | def upload_embed_exchange_data(self, embed_exchange_upload, type_): method ones_openai (line 304) | def ones_openai(self, question, openai_api, temperature, max_tokens, t... method ones_openai_doc (line 318) | def ones_openai_doc(self, question, openai_api, temperature, max_token... method start_openai_doc (line 337) | def start_openai_doc(self, openai_api, temperature, max_tokens, top_p,... method start_openai (line 361) | def start_openai(self, openai_api, temperature, max_tokens, top_p, ope... method start_openai_embed (line 379) | def start_openai_embed(self, openai_api, temperature, max_tokens, top_... method stop_openai_embed (line 404) | def stop_openai_embed(self): method stop_openai (line 409) | def stop_openai(self): method stop_openai_doc (line 414) | def stop_openai_doc(self): method split_json (line 420) | def split_json(self, json_l, ratio=0.2): method dl_jsonl1 (line 432) | def dl_jsonl1(self, dpath, split_data): method dl_embed (line 441) | def dl_embed(self, embed_download_path, train_valid=False): method dl_jsonl2 (line 452) | def dl_jsonl2(self, dpath, split_data): method connect_mysql (line 461) | def connect_mysql(self, host, user, password, port): method change_database (line 470) | def change_database(self, database): method mysql_upload (line 475) | def mysql_upload(self, host, user, password, port, database, new_datab... class video_apply (line 510) | class video_apply(): method __init__ (line 522) | def __init__(self): method set_v (line 528) | def set_v(self, params): method set_llm (line 556) | def set_llm(self, params): method predict (line 580) | def predict(self, input, chatbot, gen_type, lang, voice_style, show_ty... method generate_video (line 608) | def generate_video(self, response, gen_type, lang, voice_style): method reset_state (line 671) | def reset_state(self): method clear (line 675) | def clear(self): method clear_config (line 687) | def clear_config(self): class play_base_api (line 691) | class play_base_api(): method __init__ (line 694) | def __init__(self): method set_v (line 697) | def set_v(self, params): method set_llm (line 701) | def set_llm(self, params): method predict (line 705) | def predict(self, input, chatbot): method reset_state (line 712) | def reset_state(self): method clear (line 716) | def clear(self): class chat_base_api (line 727) | class chat_base_api(): method __init__ (line 730) | def __init__(self, api_type): method set_v (line 749) | def set_v(self, params): method predict (line 801) | def predict(self, input, stream=False): method predict_claude (line 805) | def predict_claude(self, input, filepath=[]): method reset_state (line 809) | def reset_state(self): class chat_base_model (line 814) | class chat_base_model(): method __init__ (line 819) | def __init__(self): method clear (line 825) | def clear(self): method clears (line 838) | def clears(self): method reset_state_claude (line 848) | def reset_state_claude(self,chatbot, history, user_input): method reset_state (line 854) | def reset_state(self, *args): method reset_states (line 868) | def reset_states(self): method load_api_params (line 871) | def load_api_params(self, params): method load_model (line 877) | def load_model(self, params): method query_from_mysql (line 886) | def query_from_mysql(self, input, chatbot, database, host, user, passw... method predict (line 930) | def predict(self, input, chatbot, history=[], stream=False, net=False,... method paralle_api_call (line 1034) | def paralle_api_call(self,params): method parallel_predict (line 1037) | def parallel_predict(self, input, local_chatbot1,local_chatbot2, paral... class llm_train_thread (line 1149) | class llm_train_thread(threading.Thread): method __init__ (line 1154) | def __init__(self, event): method stop (line 1158) | def stop(self): method stopped (line 1164) | def stopped(self): method run (line 1167) | def run(self): class llm_train (line 1174) | class llm_train(): method __init__ (line 1179) | def __init__(self): method handle_other_option (line 1282) | def handle_other_option(self, option): method handle_other_option_finished (line 1292) | def handle_other_option_finished(self, function_name, state): method switch_CPU_GPU (line 1299) | def switch_CPU_GPU(self, current_device): method get_avaliable_gpus (line 1310) | def get_avaliable_gpus(): method switch_checkpoint (line 1322) | def switch_checkpoint(self, lora, model): method __load_device_config (line 1342) | def __load_device_config(self, LLM_device, LLM_devices): method get_directories (line 1363) | def get_directories(self, path, unuse): method handle_refresh_embd_and_data (line 1366) | def handle_refresh_embd_and_data(self): method detect_OS (line 1377) | def detect_OS(): method switch_deepspeed (line 1386) | def switch_deepspeed(self, deepspeed): method __load_llm_accelerate_config (line 1395) | def __load_llm_accelerate_config(self, deepspeed, LLM_mixed_precision,... method __load_llm_deepspeed_config (line 1420) | def __load_llm_deepspeed_config(self, deepspeed, LLM_mixed_precision, ... method post_train_request (line 1482) | def post_train_request(self, deepspeed, LLM_mixed_precision, LLM_compu... method post_stop_request (line 1570) | def post_stop_request(self): method load_llm_config (line 1578) | def load_llm_config(self, deepspeed, LLM_mixed_precision, LLM_compute_... method write_accelerate_deepspeed_config (line 1613) | def write_accelerate_deepspeed_config(self): method load_model_hyperparam (line 1625) | def load_model_hyperparam(self, LLM_models1, LLM_data1, lora, lora_che... method write_model_hyperparam_config (line 1653) | def write_model_hyperparam_config(self): method handle_refresh_LLM (line 1662) | def handle_refresh_LLM(self): class train_thread (line 1672) | class train_thread(threading.Thread): method __init__ (line 1673) | def __init__(self, event): method setv (line 1679) | def setv(self, model_name, embed_arch, data_dir, device, batch_size, m... method stop (line 1696) | def stop(self): method stopped (line 1703) | def stopped(self): method get_train_valid_file (line 1706) | def get_train_valid_file(self, data_dir): method get_device (line 1718) | def get_device(self, device): method run (line 1725) | def run(self): class embedding_train_utils (line 1745) | class embedding_train_utils(): method __init__ (line 1746) | def __init__(self) -> None: method start_train (line 1751) | def start_train(self, model_name, embed_arch, data_dir, device, batch_... method stop_train (line 1786) | def stop_train(self): function handle_online_tts (line 1792) | def handle_online_tts(choice): function load_javascript (line 1799) | def load_javascript(): FILE: utils/utils.py function parse_input_string (line 23) | def parse_input_string(input_string): function get_model_name (line 30) | def get_model_name(path): function copy_custom_files (line 39) | def copy_custom_files(source, target): function get_model_tokenizer (line 90) | def get_model_tokenizer(path, use_8bit=False, use_4bit=False, max_length... function get_lora_model (line 303) | def get_lora_model(model, path, lora_rank, checkpoint): function get_preprocess_datacollator (line 350) | def get_preprocess_datacollator(path): function build_query (line 382) | def build_query(path, tokenizer, question, history): function build_tokens (line 439) | def build_tokens(full_prompt, user_prompt, tokenizer, max_length): function preprocess_4_phoenix (line 456) | def preprocess_4_phoenix(example, tokenizer, max_length): function data_collator_4_phoenix (line 467) | def data_collator_4_phoenix(features, tokenizer): function preprocess_4_chatglm (line 490) | def preprocess_4_chatglm(example, tokenizer, max_length): function data_collator_4_chatglm (line 504) | def data_collator_4_chatglm(features, tokenizer): function preprocess_4_moss (line 527) | def preprocess_4_moss(example, tokenizer, max_length): function preprocess_4_gunaco (line 537) | def preprocess_4_gunaco(example, tokenizer, max_length): function preprocess_4_baichuan (line 547) | def preprocess_4_baichuan(example, tokenizer, max_length): function preprocess_4_chatglm2 (line 557) | def preprocess_4_chatglm2(example, tokenizer, max_length): function data_collator_4_chatglm2 (line 571) | def data_collator_4_chatglm2(features, tokenizer): function preprocess_4_baichuan_13b_chat (line 601) | def preprocess_4_baichuan_13b_chat(example, tokenizer, max_length): function preprocess_4_internlm (line 622) | def preprocess_4_internlm(example, tokenizer, max_length): function preprocess_4_chinese_alpaca_2 (line 644) | def preprocess_4_chinese_alpaca_2(example, tokenizer, max_length): function preprocess_4_qwen (line 655) | def preprocess_4_qwen(example, tokenizer, max_length): FILE: utils/vits_utils.py class VITS (line 7) | class VITS: method __init__ (line 12) | def __init__(self): method load (line 17) | def load(self,model_name,outputLanguage): method to_audio (line 61) | def to_audio(self,response,output_path):