Spaces:
Sleeping
Sleeping
import React, { useEffect } from 'react'; | |
function GradioComponent() { | |
useEffect(() => { | |
const script = document.createElement('script'); | |
script.src = "https://gradio.s3-us-west-2.amazonaws.com/3.40.1/gradio.js"; | |
script.type = "module"; | |
document.body.appendChild(script); | |
}, []); | |
if (false) { | |
return ( | |
<gradio-app src="https://the-cbr-cbr-athena.hf.space"></gradio-app> | |
) | |
} | |
else | |
return (<div> skipping gradio load </div>) | |
} | |
export default GradioComponent; |