Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Commit c25b5d8

Browse files
authored
Update README.md
1 parent 8281f61 commit c25b5d8

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff 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
1717
If 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+
2623
and 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

3126
For some reason, on a page reload, solara breaks if these lines are running.
3227
It will also make prototyping faster because you won't be actually encoding strings.

0 commit comments

Comments
 (0)