enzostvs HF staff commited on
Commit
e5bdbf7
1 Parent(s): 1e8447a

test sharing function

Browse files
Files changed (1) hide show
  1. components/form.tsx +1 -1
components/form.tsx CHANGED
@@ -54,7 +54,7 @@ export const Form = ({ children }: { children: React.ReactNode }) => {
54
  const modelPromise = useRef(null);
55
  const tokenizerPromise = useRef(null);
56
 
57
- const SHARING_ENABLED = window?.location?.host.endsWith(".hf.space");
58
 
59
  useEffect(() => {
60
  modelPromise.current ??= MusicgenForConditionalGeneration.from_pretrained(
 
54
  const modelPromise = useRef(null);
55
  const tokenizerPromise = useRef(null);
56
 
57
+ const SHARING_ENABLED = true;
58
 
59
  useEffect(() => {
60
  modelPromise.current ??= MusicgenForConditionalGeneration.from_pretrained(