Skip to content

Update contexttab snippet #1694

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MaxSchambach
Copy link
Contributor

  • Adds a preinstall snippet to contexttab snippets
  • After receiveing user feedback, this explicit uninstall is requiring when clicking on the Use This Model with Colab button on HF. The Colab notebook has incompatible versions of torch and torchaudio, torchvision installed that made the snippet fail. This should resolve it.

@@ -133,6 +133,8 @@ ta.save("test-2.wav", wav, model.sr)`,
];

export const contexttab = (): string[] => {
const preInstallSnippet = `pip uninstall torch torchvision torchaudio -y`;
Copy link
Member

Choose a reason for hiding this comment

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

is this supposed to be uninstall?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. When trying the model on colab via the link on HF, it comes with a preinstalled environment that is incompatible and leads to errors when using the model. It is weird for those that just look at the snippet, but it is required for the Colab demo. I could add a comment if that helps clearing things up.

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.

2 participants