Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with label uploads #534

Merged
merged 3 commits into from
Apr 6, 2023
Merged

Fix bug with label uploads #534

merged 3 commits into from
Apr 6, 2023

Conversation

stefsmeets
Copy link
Contributor

This PR fixes the bug with label uploads where you cannot upload data outside the FOLDER_ON_SERVER. If labels are uploaded, look at the contents of the upload instead of the filename.

Closes #505

@stefsmeets
Copy link
Contributor Author

Hi @laurasootes would you be willing to review this?

Copy link
Contributor

@laurasootes laurasootes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly and I also like the automatic fixes to the code formatting :)

I do have one suggestion to fix the related problem that text analysis cannot be run if the dashboard is started outside of the dashboard folder. This is caused by the hardcode word_vector_path:

word_vector_path = '../tutorials/data/movie_reviews_word_vectors.txt'

A fix could be:
word_vector_path = str(Path(os.path.dirname(os.path.dirname(file))) / 'tutorials/data/movie_reviews_word_vectors.txt')

@stefsmeets stefsmeets merged commit 6f7e436 into main Apr 6, 2023
@stefsmeets stefsmeets deleted the fix_dash_app_data branch April 6, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard uploads must be located in app_data
2 participants