This repository was archived by the owner on Apr 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,13 @@ Any changes you make to the app should reflect in realtime
1515
1616### Note: ` SentenceTransformers ` doesn't play nicely with solara
1717If you are going to be developing, I strongly recommend commenting out
18- the few lines in [ ml.py] ( utils/ml.py )
19- ```
20- from sentence_transformers import SentenceTransformer
21- ...
22- ENCODER = SentenceTransformer("paraphrase-MiniLM-L3-v2")
23- ...
24- return ENCODER.encode(samples)
25- ```
18+ the few lines in [ ml.py] ( bulk_labeling/utils/ml.py ) :
19+ https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L5
20+ https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L9
21+ https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L13
22+
2623and uncomment
27- ```
28- # return np.random.rand(len(samples), 20)
29- ```
24+ https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L15
3025
3126For some reason, on a page reload, solara breaks if these lines are running.
3227It will also make prototyping faster because you won't be actually encoding strings.
You can’t perform that action at this time.
0 commit comments