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

Commit

Permalink
Merge pull request #2 from Ben-Epstein/chore/organization
Browse files Browse the repository at this point in the history
Chore/organization
  • Loading branch information
Ben-Epstein authored Feb 3, 2023
2 parents 51bb989 + c25b5d8 commit e529dd4
Show file tree
Hide file tree
Showing 24 changed files with 568 additions and 342 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 88
extend-ignore = E203,D10,D415,E501,E712
docstring-convention = google
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,24 @@ A tool for bulk labeling, built in Solara!
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!

I also want to learn how to use solara :)


## Development
1. Setup a virtual env: `python -m venv .venv && source .venv/bin/activate`
2. Install the package: `pip install -e . && pyenv rehash`
3. Run: `solara run bulk_labeling/main.py`

Any changes you make to the app should reflect in realtime

### Note: `SentenceTransformers` doesn't play nicely with solara
If you are going to be developing, I strongly recommend commenting out
the few lines in [ml.py](bulk_labeling/utils/ml.py):
https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L5
https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L9
https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L13

and uncomment
https://github.com/Ben-Epstein/bulk-labeling-solara/blob/8281f618c33e298a0bb5de373b0087a49d58e938/bulk_labeling/utils/ml.py#L15

For some reason, on a page reload, solara breaks if these lines are running.
It will also make prototyping faster because you won't be actually encoding strings.
332 changes: 0 additions & 332 deletions bulk-labeling/main.py

This file was deleted.

3 changes: 0 additions & 3 deletions bulk-labeling/requirements-dev.txt

This file was deleted.

7 changes: 0 additions & 7 deletions bulk-labeling/requirements.txt

This file was deleted.

1 change: 1 addition & 0 deletions bulk_labeling/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.1"
Empty file.
Loading

0 comments on commit e529dd4

Please sign in to comment.