Skip to content

Conversation

@gustavocidornelas
Copy link
Contributor

Summary

  • Made requirements_txt_file a required argument on add_models. To do so, removed the Optional type annotation and updated the marshmallow schema, so users can no longer upload models without it;
  • Updated Python API reference examples to include the requirements;
  • Updated Jupyter notebooks and corresponding requirements.txt files.

About the new requirements files

I curl the requirements file from the examples-gallery repo. This is needed to make the notebooks work well on Google Colab. Since some of the requirements files are not yet on examples-gallery (they'll be there once this PR is merged into main), some of the curled links will be broken. Everything should work after the merge.

Testing

I briefly tested all notebooks. Due to time constraints, I couldn't test the envs defined by the requirements.txt as thoroughly as I wanted to. I did test the trickiest ones, such as the one for pytorch, which requires some more specific module versions.

model_type: ModelType,
class_names: List[str],
requirements_txt_file: Optional[str] = None,
requirements_txt_file: str = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

= None should be removed

@whoseoyster
Copy link
Contributor

Can you add to the CHANGELOG?

@whoseoyster
Copy link
Contributor

whoseoyster commented Aug 8, 2022

@whoseoyster whoseoyster merged commit 2d5b725 into main Aug 8, 2022
@whoseoyster whoseoyster deleted the cid/requirements-txt branch August 8, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants