cbr-athena / website /src /components /GradioComponent.jsx
DinisCruz's picture
refactored website and docs location
799076a
raw
history blame
506 Bytes
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;