Skip to content

Instantly share code, notes, and snippets.

@amrrs
Created August 17, 2021 20:02
Show Gist options
  • Save amrrs/32e4f4a4c8a12f7f53bada6fbb7b4cdf to your computer and use it in GitHub Desktop.
Save amrrs/32e4f4a4c8a12f7f53bada6fbb7b4cdf to your computer and use it in GitHub Desktop.

Revisions

  1. amrrs created this gist Aug 17, 2021.
    14 changes: 14 additions & 0 deletions avoid_colab_close.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    //credit - https://huggingface.co/blog/fine-tune-wav2vec2-english (Patrick von Platen)

    // run this on your Chrome / Browser Console (where Colab is present)

    function ConnectButton(){
    console.log("Connect pushed");
    document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
    }

    var colab = setInterval(ConnectButton,60000);

    // uncomment the below line and use it for clearing

    //clearInterval(colab)