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

Commit e529dd4

Browse files
authored
Merge pull request #2 from Ben-Epstein/chore/organization
Chore/organization
2 parents 51bb989 + c25b5d8 commit e529dd4

File tree

24 files changed

+568
-342
lines changed

24 files changed

+568
-342
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E203,D10,D415,E501,E712
4+
docstring-convention = google

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,24 @@ A tool for bulk labeling, built in Solara!
44
I'm trying to rebuild my original [bulk-labeling](https://github.com/rungalileo/bulk-labeling/) app, which was Streamlit, in [Solara](https://github.com/widgetti/solara) so it can be a bit more scalable, customizable, and robust to new features!
55

66
I also want to learn how to use solara :)
7+
8+
9+
## Development
10+
1. Setup a virtual env: `python -m venv .venv && source .venv/bin/activate`
11+
2. Install the package: `pip install -e . && pyenv rehash`
12+
3. Run: `solara run bulk_labeling/main.py`
13+
14+
Any changes you make to the app should reflect in realtime
15+
16+
### Note: `SentenceTransformers` doesn't play nicely with solara
17+
If you are going to be developing, I strongly recommend commenting out
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+
23+
and uncomment
24+
https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L15
25+
26+
For some reason, on a page reload, solara breaks if these lines are running.
27+
It will also make prototyping faster because you won't be actually encoding strings.

bulk-labeling/main.py

Lines changed: 0 additions & 332 deletions
This file was deleted.

bulk-labeling/requirements-dev.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

bulk-labeling/requirements.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

bulk_labeling/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.1"

bulk_labeling/components/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)