vincelwt commited on
Commit
a3c0e30
·
unverified ·
1 Parent(s): 3346bd5

Add HuggingFace resizer

Browse files
Files changed (1) hide show
  1. pages/_app.js +9 -0
pages/_app.js CHANGED
@@ -1,6 +1,8 @@
1
  import PlausibleProvider from "next-plausible"
2
 
3
  import "@/styles/globals.css"
 
 
4
 
5
  export default function App({ Component, pageProps }) {
6
  return (
@@ -13,6 +15,13 @@ export default function App({ Component, pageProps }) {
13
  }}
14
  customDomain="benchmarks.llmonitor.com"
15
  >
 
 
 
 
 
 
 
16
  <Component {...pageProps} />
17
  <footer>
18
  <br />
 
1
  import PlausibleProvider from "next-plausible"
2
 
3
  import "@/styles/globals.css"
4
+ import Head from "next/head"
5
+ import Script from "next/script"
6
 
7
  export default function App({ Component, pageProps }) {
8
  return (
 
15
  }}
16
  customDomain="benchmarks.llmonitor.com"
17
  >
18
+ <Head>
19
+ {/* Support embedding into HuggingFace */}
20
+ <Script
21
+ strategy="afterInteractive"
22
+ src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"
23
+ />
24
+ </Head>
25
  <Component {...pageProps} />
26
  <footer>
27
  <br />