Buckets:

rtrm's picture
download
raw
9.73 kB
import{s as De,n as Oe,o as Ve}from"../chunks/scheduler.cfabe6e6.js";import{S as Ge,i as Le,e as f,s as i,c as s,h as je,a as g,d as a,b as l,f as Pe,g as r,j as h,k as He,l as Fe,m as n,n as o,t as p,o as m,p as $}from"../chunks/index.2eae04e0.js";import{C as Ue,H as u,a as q,E as qe}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.270b8ab9.js";function Ne(Ee){let d,Z,N,B,c,K,T,Q,v,Re="Trackio uses environment variables to configure various aspects of its behavior, particularly for deployment to Hugging Face Spaces and dataset persistence. This guide covers the main environment variables and their usage.",W,b,Y,_,z,w,xe="Specifies a custom directory for storing Trackio data. By default, Trackio stores data in <code>~/.cache/huggingface/trackio/</code>.",ee,E,te,R,Me="Note: This environment variable applies as long as Trackio is not running in a Space with persistent storage enabled. If Trackio is running in a Space with persistent storage enabled (which is detected with the <code>PERSISTANT_STORAGE_ENABLED</code> env variable), then the Trackio data will be stored in <code>/data/trackio</code>.",ae,x,ne,M,Ie="Sets the Hugging Face Dataset ID where logs will be stored when running on Hugging Face Spaces. If not provided, the dataset name will be set automatically when deploying to Spaces.",ie,I,le,C,se,k,Ce="Your Hugging Face authentication token. Required for creating Spaces and Datasets on Hugging Face. Set this locally when deploying to Spaces from your machine. Must have <code>write</code> permissions for the namespace that you are deploying the Trackio dashboard.",re,S,oe,J,pe,y,ke="Since Trackio is built on top of Gradio, you can use environment variables used by Gradio to control the behavior of Trackio. Here are a few examples:",me,A,$e,P,Se="Specifies the port on which the Tradio dashboard will launch. Defaults to <code>7860</code>",fe,H,ge,D,he,O,Je="Defines the host name for the Trackio dashboard server. To make the dasbhoard accessible from any IP address, set this to <code>&quot;0.0.0.0&quot;</code>",de,V,ue,G,ce,L,ye="Enables the MCP (Model Context Protocol) server functionality in Trackio. When enabled, the Trackio dashboard will be set up as an MCP server and certain functions will be exposed as MCP tools that can be used by LLMs (e.g. to read the logged metrics).",Te,j,ve,F,Ae='See <a href="https://www.gradio.app/guides/environment-variables" rel="nofollow">this more comprehensive list</a> of environment variables used by Gradio.',be,U,_e,X,we;return c=new Ue({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),T=new u({props:{title:"Environment Variables",local:"environment-variables",headingTag:"h1"}}),b=new u({props:{title:"Core Environment Variables",local:"core-environment-variables",headingTag:"h2"}}),_=new u({props:{title:"TRACKIO_DIR",local:"trackiodir",headingTag:"h3"}}),E=new q({props:{code:"ZXhwb3J0JTIwVFJBQ0tJT19ESVIlM0QlMjIlMkZwYXRoJTJGdG8lMkZ0cmFja2lvJTJGZGF0YSUyMg==",highlighted:'<span class="hljs-built_in">export</span> TRACKIO_DIR=<span class="hljs-string">&quot;/path/to/trackio/data&quot;</span>',wrap:!1}}),x=new u({props:{title:"TRACKIO_DATASET_ID",local:"trackiodatasetid",headingTag:"h3"}}),I=new q({props:{code:"ZXhwb3J0JTIwVFJBQ0tJT19EQVRBU0VUX0lEJTNEJTIydXNlcm5hbWUlMkZkYXRhc2V0X25hbWUlMjI=",highlighted:'<span class="hljs-built_in">export</span> TRACKIO_DATASET_ID=<span class="hljs-string">&quot;username/dataset_name&quot;</span>',wrap:!1}}),C=new u({props:{title:"HF_TOKEN",local:"hftoken",headingTag:"h3"}}),S=new q({props:{code:"ZXhwb3J0JTIwSEZfVE9LRU4lM0QlMjJoZl94eHh4eHh4eHh4eHh4JTIy",highlighted:'<span class="hljs-built_in">export</span> HF_TOKEN=<span class="hljs-string">&quot;hf_xxxxxxxxxxxxx&quot;</span>',wrap:!1}}),J=new u({props:{title:"Gradio Environment Variables",local:"gradio-environment-variables",headingTag:"h2"}}),A=new u({props:{title:"GRADIO_SERVER_PORT",local:"gradioserverport",headingTag:"h3"}}),H=new q({props:{code:"ZXhwb3J0JTIwR1JBRElPX1NFUlZFUl9QT1JUJTNEODAwMA==",highlighted:'<span class="hljs-built_in">export</span> GRADIO_SERVER_PORT=8000',wrap:!1}}),D=new u({props:{title:"GRADIO_SERVER_NAME",local:"gradioservername",headingTag:"h3"}}),V=new q({props:{code:"ZXhwb3J0JTIwR1JBRElPX1NFUlZFUl9OQU1FJTNEJTIyMC4wLjAuMCUyMg==",highlighted:'<span class="hljs-built_in">export</span> GRADIO_SERVER_NAME=<span class="hljs-string">&quot;0.0.0.0&quot;</span>',wrap:!1}}),G=new u({props:{title:"GRADIO_MCP_SERVER",local:"gradiomcpserver",headingTag:"h3"}}),j=new q({props:{code:"ZXhwb3J0JTIwR1JBRElPX01DUF9TRVJWRVIlM0QlMjJUcnVlJTIy",highlighted:'<span class="hljs-built_in">export</span> GRADIO_MCP_SERVER=<span class="hljs-string">&quot;True&quot;</span>',wrap:!1}}),U=new qe({props:{source:"https://github.com/gradio-app/trackio/blob/main/docs/source/environment_variables.md"}}),{c(){d=f("meta"),Z=i(),N=f("p"),B=i(),s(c.$$.fragment),K=i(),s(T.$$.fragment),Q=i(),v=f("p"),v.textContent=Re,W=i(),s(b.$$.fragment),Y=i(),s(_.$$.fragment),z=i(),w=f("p"),w.innerHTML=xe,ee=i(),s(E.$$.fragment),te=i(),R=f("p"),R.innerHTML=Me,ae=i(),s(x.$$.fragment),ne=i(),M=f("p"),M.textContent=Ie,ie=i(),s(I.$$.fragment),le=i(),s(C.$$.fragment),se=i(),k=f("p"),k.innerHTML=Ce,re=i(),s(S.$$.fragment),oe=i(),s(J.$$.fragment),pe=i(),y=f("p"),y.textContent=ke,me=i(),s(A.$$.fragment),$e=i(),P=f("p"),P.innerHTML=Se,fe=i(),s(H.$$.fragment),ge=i(),s(D.$$.fragment),he=i(),O=f("p"),O.innerHTML=Je,de=i(),s(V.$$.fragment),ue=i(),s(G.$$.fragment),ce=i(),L=f("p"),L.textContent=ye,Te=i(),s(j.$$.fragment),ve=i(),F=f("p"),F.innerHTML=Ae,be=i(),s(U.$$.fragment),_e=i(),X=f("p"),this.h()},l(e){const t=je("svelte-u9bgzb",document.head);d=g(t,"META",{name:!0,content:!0}),t.forEach(a),Z=l(e),N=g(e,"P",{}),Pe(N).forEach(a),B=l(e),r(c.$$.fragment,e),K=l(e),r(T.$$.fragment,e),Q=l(e),v=g(e,"P",{"data-svelte-h":!0}),h(v)!=="svelte-6lxbnd"&&(v.textContent=Re),W=l(e),r(b.$$.fragment,e),Y=l(e),r(_.$$.fragment,e),z=l(e),w=g(e,"P",{"data-svelte-h":!0}),h(w)!=="svelte-1l79f0"&&(w.innerHTML=xe),ee=l(e),r(E.$$.fragment,e),te=l(e),R=g(e,"P",{"data-svelte-h":!0}),h(R)!=="svelte-1ael7jl"&&(R.innerHTML=Me),ae=l(e),r(x.$$.fragment,e),ne=l(e),M=g(e,"P",{"data-svelte-h":!0}),h(M)!=="svelte-17wnysy"&&(M.textContent=Ie),ie=l(e),r(I.$$.fragment,e),le=l(e),r(C.$$.fragment,e),se=l(e),k=g(e,"P",{"data-svelte-h":!0}),h(k)!=="svelte-1ghvik9"&&(k.innerHTML=Ce),re=l(e),r(S.$$.fragment,e),oe=l(e),r(J.$$.fragment,e),pe=l(e),y=g(e,"P",{"data-svelte-h":!0}),h(y)!=="svelte-aii2pt"&&(y.textContent=ke),me=l(e),r(A.$$.fragment,e),$e=l(e),P=g(e,"P",{"data-svelte-h":!0}),h(P)!=="svelte-i8tew1"&&(P.innerHTML=Se),fe=l(e),r(H.$$.fragment,e),ge=l(e),r(D.$$.fragment,e),he=l(e),O=g(e,"P",{"data-svelte-h":!0}),h(O)!=="svelte-1flg7nl"&&(O.innerHTML=Je),de=l(e),r(V.$$.fragment,e),ue=l(e),r(G.$$.fragment,e),ce=l(e),L=g(e,"P",{"data-svelte-h":!0}),h(L)!=="svelte-1uq5d8r"&&(L.textContent=ye),Te=l(e),r(j.$$.fragment,e),ve=l(e),F=g(e,"P",{"data-svelte-h":!0}),h(F)!=="svelte-k0rwxb"&&(F.innerHTML=Ae),be=l(e),r(U.$$.fragment,e),_e=l(e),X=g(e,"P",{}),Pe(X).forEach(a),this.h()},h(){He(d,"name","hf:doc:metadata"),He(d,"content",Xe)},m(e,t){Fe(document.head,d),n(e,Z,t),n(e,N,t),n(e,B,t),o(c,e,t),n(e,K,t),o(T,e,t),n(e,Q,t),n(e,v,t),n(e,W,t),o(b,e,t),n(e,Y,t),o(_,e,t),n(e,z,t),n(e,w,t),n(e,ee,t),o(E,e,t),n(e,te,t),n(e,R,t),n(e,ae,t),o(x,e,t),n(e,ne,t),n(e,M,t),n(e,ie,t),o(I,e,t),n(e,le,t),o(C,e,t),n(e,se,t),n(e,k,t),n(e,re,t),o(S,e,t),n(e,oe,t),o(J,e,t),n(e,pe,t),n(e,y,t),n(e,me,t),o(A,e,t),n(e,$e,t),n(e,P,t),n(e,fe,t),o(H,e,t),n(e,ge,t),o(D,e,t),n(e,he,t),n(e,O,t),n(e,de,t),o(V,e,t),n(e,ue,t),o(G,e,t),n(e,ce,t),n(e,L,t),n(e,Te,t),o(j,e,t),n(e,ve,t),n(e,F,t),n(e,be,t),o(U,e,t),n(e,_e,t),n(e,X,t),we=!0},p:Oe,i(e){we||(p(c.$$.fragment,e),p(T.$$.fragment,e),p(b.$$.fragment,e),p(_.$$.fragment,e),p(E.$$.fragment,e),p(x.$$.fragment,e),p(I.$$.fragment,e),p(C.$$.fragment,e),p(S.$$.fragment,e),p(J.$$.fragment,e),p(A.$$.fragment,e),p(H.$$.fragment,e),p(D.$$.fragment,e),p(V.$$.fragment,e),p(G.$$.fragment,e),p(j.$$.fragment,e),p(U.$$.fragment,e),we=!0)},o(e){m(c.$$.fragment,e),m(T.$$.fragment,e),m(b.$$.fragment,e),m(_.$$.fragment,e),m(E.$$.fragment,e),m(x.$$.fragment,e),m(I.$$.fragment,e),m(C.$$.fragment,e),m(S.$$.fragment,e),m(J.$$.fragment,e),m(A.$$.fragment,e),m(H.$$.fragment,e),m(D.$$.fragment,e),m(V.$$.fragment,e),m(G.$$.fragment,e),m(j.$$.fragment,e),m(U.$$.fragment,e),we=!1},d(e){e&&(a(Z),a(N),a(B),a(K),a(Q),a(v),a(W),a(Y),a(z),a(w),a(ee),a(te),a(R),a(ae),a(ne),a(M),a(ie),a(le),a(se),a(k),a(re),a(oe),a(pe),a(y),a(me),a($e),a(P),a(fe),a(ge),a(he),a(O),a(de),a(ue),a(ce),a(L),a(Te),a(ve),a(F),a(be),a(_e),a(X)),a(d),$(c,e),$(T,e),$(b,e),$(_,e),$(E,e),$(x,e),$(I,e),$(C,e),$(S,e),$(J,e),$(A,e),$(H,e),$(D,e),$(V,e),$(G,e),$(j,e),$(U,e)}}}const Xe='{"title":"Environment Variables","local":"environment-variables","sections":[{"title":"Core Environment Variables","local":"core-environment-variables","sections":[{"title":"TRACKIO_DIR","local":"trackiodir","sections":[],"depth":3},{"title":"TRACKIO_DATASET_ID","local":"trackiodatasetid","sections":[],"depth":3},{"title":"HF_TOKEN","local":"hftoken","sections":[],"depth":3}],"depth":2},{"title":"Gradio Environment Variables","local":"gradio-environment-variables","sections":[{"title":"GRADIO_SERVER_PORT","local":"gradioserverport","sections":[],"depth":3},{"title":"GRADIO_SERVER_NAME","local":"gradioservername","sections":[],"depth":3},{"title":"GRADIO_MCP_SERVER","local":"gradiomcpserver","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ze(Ee){return Ve(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class We extends Ge{constructor(d){super(),Le(this,d,Ze,Ne,De,{})}}export{We as component};

Xet Storage Details

Size:
9.73 kB
·
Xet hash:
e9ceb6570557c0795829367f517e780a5067f71ca51fa99fafcdb9e048129b1a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.