How to embed ML application?

Example how to add ml application from gradio.app
Author
Published

October 6, 2023

1 Adding the script

<script type="module"
src="https://gradio.s3-us-west-2.amazonaws.com/3.36.1/gradio.js">
</script>
<gradio-app space="ForBo7/FloodDetector"></gradio-app>

2 Styling

To avoid lines surrounding, add to theme-light.scss

.info.svelte-1kyws56.svelte-1kyws56 {
    display: none !important;
}

.embed-container.svelte-1kyws56.svelte-1kyws56 {
    border: none !important;
}