mishig HF staff commited on
Commit
74d5501
1 Parent(s): 7298e92

window.parent.postMessage({ modelId: model.id }, parentOrigin);

Browse files
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte CHANGED
@@ -33,6 +33,10 @@
33
 
34
  const url = new URL($page.url);
35
  url.searchParams.set("modelId", model.id);
 
 
 
 
36
  goto(url.toString(), { replaceState: true });
37
  }
38
 
 
33
 
34
  const url = new URL($page.url);
35
  url.searchParams.set("modelId", model.id);
36
+
37
+ const parentOrigin = "https://huggingface.co";
38
+ window.parent.postMessage({ modelId: model.id }, parentOrigin);
39
+
40
  goto(url.toString(), { replaceState: true });
41
  }
42