Spaces:
Sleeping
Sleeping
File size: 801 Bytes
be5030f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import { WithStreamlitConnection } from "./streamlit";
import ImageGallery from "./ImageGallery.svelte";
// "WithStreamlitConnection" is a wrapper component. It bootstraps the
// connection between your component and the Streamlit app, and handles
// passing arguments from Python -> Component.
//
// You don't need to edit withStreamlitConnection (but you're welcome to!).
const imageGallery = new WithStreamlitConnection({
target: document.body,
props: {
/**
* Custom Streamlit component
*/
component: ImageGallery,
/**
* Set to false if you want `args` (the named dictionary of arguments passed
* from Python) to be passed as a dictionary to your component.
*
* Default is `true`.
*/
spreadArgs: true,
},
});
export default ImageGallery;
|