title
stringlengths
12
112
published
stringlengths
19
23
url
stringlengths
28
28
video_id
stringlengths
11
11
channel_id
stringclasses
5 values
id
stringlengths
16
31
text
stringlengths
0
596
start
float64
0
37.8k
end
float64
2.18
37.8k
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t513.24
is like this is Marcus Aurelius and I think something like this maybe this or
513.24
521.52
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t518.28
something like it would be pretty cool to just have in the middle of the web
518.28
527.4
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t521.52
page and underneath we have a search bar and keep it pretty simple so I think
521.52
533.48
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t527.4
that's everything really for the plan and I mean the first thing we're going to
527.4
539
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t533.48
do in the in the next video is actually sell requests and download that data and
533.48
545.84
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t539.0
maybe pre-process it as well or they they might be two videos so that's
539
550.16
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t545.84
everything for this video I hope that you're as excited about this as I am
545.84
553.34
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t550.16
because I'm really looking forward to actually building all of this I think
550.16
559.68
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t553.34
it'll be super cool and I mean ideally at the end it's one it's gonna look
553.34
565.2
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t559.68
cool and two we're gonna learn like a huge amount of stuff if you even put all
559.68
568.64
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t565.2
this together there's so many different things that you need to know in order
565.2
574.52
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t568.64
to make everything work so it should be really cool and I'm looking forward to
568.64
580.5
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t574.52
getting started with it so I will see you in the next video where we'll
574.52
600.56
How-to Structure a Q&A ML App
2021-04-09 15:22:50 UTC
https://youtu.be/4Jmq28RQ3hU
4Jmq28RQ3hU
UCv83tO5cePwHMt1952IVVHw
4Jmq28RQ3hU-t580.5
580.5
600.56
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t0.0
Today we're going to have a look at how we can build custom components in Streamlit using React and external libraries like Material UI.
0
23
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t13.0
So there are already plenty of components that you can use directly from Streamlit and also from the Streamlit community.
13
31
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t23.0
Obviously you may find yourself needing to use something that doesn't already exist.
23
44
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t31.0
So we'll go through that process. Fortunately it's not too difficult. It does require a little bit of front end code.
31
50
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t44.0
But Streamlit does make it pretty straightforward.
44
56
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t50.0
So let's have a quick look at what this card might look like. This component is a card.
50
63
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t56.0
So all we have for our custom component is this little card in the middle here.
56
72
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t63.0
The rest of this is just Streamlit. And then this bit here is based on a Material UI component.
63
83
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t72.0
So if I go back we just have a title, subtitle, text or body of text and a link here which is a Material UI button.
72
86
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t83.0
Click on it and for now it's just taken to Google.
83
98
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t86.0
But we can essentially like an object in Python we can pass whatever values we like to this component.
86
105
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t98.0
So here are the actual cards from Material UI that we're basing this on.
98
109
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t105.0
And with these cards we can include much more than what I have shown you.
105
124
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t109.0
This is just the absolute basics. Like we can include these little profile images, drop downs, options and so on.
109
132
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t124.0
Even little expanders, pictures. So there's a lot we can do with it.
124
138
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t132.0
And as far as I know there isn't anything like this available directly within Streamlit.
132
145
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t138.0
So let's go ahead and set up our environment for developing this component.
138
155
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t145.0
So if you are on Mac and you have Homebrew installed you can just go brew, install node.
145
161
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t155.0
And this will install Node.js and the node package manager.
155
163
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t161.0
I already have it installed so I'm not going to rerun it.
161
174
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t163.0
If you are not on Mac or you don't have Homebrew you can download it from the Node.js website.
163
184
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t174.0
So go over here. This here. Node.js.org. And then download.
174
189
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t184.0
OK. And you have Windows, Mac and so on.
184
194
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t189.0
So once you have that installed you also need to install Streamlit.
189
199
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t194.0
I'm going to assume you already have it installed.
194
202
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t199.0
But if not you just pip install Streamlit.
199
206
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t202.0
Now I have Streamlit in another environment so I'm going to activate that.
202
211
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t206.0
I'm going to activate Streamlit.
206
218
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t211.0
And the Streamlit side of things I will run from this terminal window.
211
227
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t218.0
Now to build our component for Streamlit we need to follow a set of structure.
218
236
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t227.0
And fortunately Streamlit provides us with a few templates that we can start from to make our lives a little bit easier.
227
244
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t236.0
So let me show you where you can find those.
236
261
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t244.0
So just type in Streamlit GitHub or maybe we can go with Streamlit Components template.
244
263
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t261.0
It's probably easier.
261
266
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t263.0
Click on here.
263
271
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t266.0
OK. And we have the Streamlit Component Template repo.
266
277
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t271.0
We just want to git clone this so we can code over here. Copy this.
271
283
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t277.0
And then switch back to our terminal.
277
289
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t283.0
Navigate to whatever folder you're going to store the template folder within.
283
296
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t289.0
So I'm going to go to Document Projects and I'm going to write git clone.
289
303
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t296.0
And then I'm going to clone the component template repository.
296
310
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t303.0
OK. Let's open that VS Code and we'll have a look at what we have in here.
303
314
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t310.0
OK. So.
310
320
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t314.0
On the right over here we have our directory structure. We have a few different templates.
314
324
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t320.0
So we're going to go this template here which uses React.
320
331
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t324.0
And within this template directory this is our actual project.
324
335
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t331.0
So we can almost ignore the rest of this stuff here.
331
339
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t335.0
Just anything within template is what we care about.
335
349
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t339.0
We have set up py. So we're going to use this and manifest for creating a pip package which will contain our components.
339
361
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t349.0
So to actually use that component we put in sol.app.component and then we just import it into our streamlit app script.
349
365
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t361.0
Or app.py usually.
361
367
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t365.0
And then use it.
365
374
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t367.0
And within here we just have the default file names here or default directory names of my component.
367
377
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t374.0
We're going to change some of these inside.
374
388
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t377.0
So here we have initpy. So that's where we're initializing our streamlit server or app from.
377
391
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t388.0
We'll go through that. It's fine.
388
398
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t391.0
We have this front end which is anything in here is the React side of things.
391
407
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t398.0
So if we go a little further we have some styling. The index.
398
415
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t407.0
And then in here we have these TSX files.
407
422
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t415.0
So in here we're using TypeScript. So if you know TypeScript it's really good.
415
431
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t422.0
If not it's not too much different from Python. I mean it's fairly different but it's not unbelievably different.
422
438
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t431.0
So I think if you know Python you'll probably read this at least and kind of follow what we're doing.
431
449
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t438.0
But I also don't really know TypeScript. I can just get through putting something simple together with this.
438
454
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t449.0
So most of the work we're going to do is going to be my component TSX.
449
460
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t454.0
But we are going to modify a lot of these files as well.
454
470
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t460.0
So first let's rename everything because everything at the moment is using default names.
460
480
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t470.0
And we obviously are building a custom component. We want to give it our own name. That makes it a little more identifiable.
470
494
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t480.0
So we'll start by going to my component up here. Rename that to stCardComponent.
480
498
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t494.0
So st is just Streamlit Card Component.
494
505
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t498.0
Down here we have myComponent. Rename that to cardComponent.
498
520
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t505.0
Basically anywhere that we have myComponent we modify to cardComponent. We update these imports.
505
538
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t520.0
So inside cardComponent here if we just find and replace. So find myComponent and replace that with cardComponent.
520
544
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t538.0
Replace all of those. See if we have anything for myComponent.
538
556
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t544.0
No. OK. Save that and let's have a look at the index. I think we also have something here.
544
568
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t556.0
Just myComponent here.
556
572
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t568.0
OK. Replace those.
568
576
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t572.0
So we have everything in there.
572
582
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t576.0
And in set of Pi we also want to update the name here.
576
593
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t582.0
So this will change it to Streamlit Card Component.
582
600
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t593.0
OK. So this defines it for our package later on.
593
608
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t600.0
And this actually should align with the directory or the folder that we have here.
600
611
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t608.0
So not Streamlit but st.
608
620
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t611.0
And in our manifest here we also need to update this to be stCardComponent.
611
624
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t620.0
So this needs to point to the front end.
620
636
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t624.0
We don't have the build directory yet but we will. So that needs to go stCardComponent.
624
642
Streamlit for ML #5.1 - Custom React Components in Streamlit Setup
2022-02-17 15:45:58 UTC
https://youtu.be/SGazDb8o-to
SGazDb8o-to
UCv83tO5cePwHMt1952IVVHw
SGazDb8o-to-t636.0
OK. So that should pretty much be everything we need to rename.
636
648