Spaces:
Running
Running
Proposal for a simplified JupyterLab login page
#21
by martin-gorner - opened
8 unmodified lines9101112131415161718192021225 unmodified lines282930313233343536377 unmodified lines4546474849508 unmodified lines<div id="jupyter-main-app" class="container"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face Logo"><h4>You must duplicate this Space to use it.</h4><br><a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/DockerTemplates/jupyterlab?duplicate=true"><img style="margin: 0" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a><br><br><h4>The default token is <span style="color:orange;">huggingface</span></h4><h4>Duplicate the Space to run your own instance</h4>{% if login_available %}{# login_available means password-login is allowed. Show the form. #}5 unmodified lines<form action="{{base_url}}login?next={{next}}" method="post" class="navbar-form pull-left">{{ xsrf_form_html() | safe }}{% if token_available %}<label for="password_input"><strong>{% trans %}Token:{% endtrans%}</strong></label>{% else %}<label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label>{% endif %}<input type="password" name="password" id="password_input" class="form-control"><button type="submit" class="btn btn-default" id="login_submit">{% trans %}Log in{% endtrans7 unmodified lines{% else %}<p>{% trans %}No login available, you shouldn't be seeing this page.{% endtrans %}</p>{% endif %}<p>This template was created by <a href="https://twitter.com/camenduru" target="_blank" >camenduru</a> and <a href="https://huggingface.co/nateraw" target="_blank" >nateraw</a>, with contributions of <a href="https://huggingface.co/osanseviero" target="_blank" >osanseviero</a> and <a href="https://huggingface.co/azzr" target="_blank" >azzr</a> </p>{% if message %}<div class="row">8 unmodified lines910111213141516175 unmodified lines232425262728293031327 unmodified lines404142434445464748498 unmodified lines<div id="jupyter-main-app" class="container"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face Logo"><h4>Welcome to JupyterLab</h4><h5>The default token is <span style="color:orange;">huggingface</span></h5>{% if login_available %}{# login_available means password-login is allowed. Show the form. #}5 unmodified lines<form action="{{base_url}}login?next={{next}}" method="post" class="navbar-form pull-left">{{ xsrf_form_html() | safe }}{% if token_available %}<label for="password_input"><strong>{% trans %}Jupyter token <span title="This is the secret you set up when deploying your JupyterLab space">ⓘ</span> {% endtrans%}</strong></label>{% else %}<label for="password_input"><strong>{% trans %}Jupyter password:{% endtrans %}</strong></label>{% endif %}<input type="password" name="password" id="password_input" class="form-control"><button type="submit" class="btn btn-default" id="login_submit">{% trans %}Log in{% endtrans7 unmodified lines{% else %}<p>{% trans %}No login available, you shouldn't be seeing this page.{% endtrans %}</p>{% endif %}<h5>If you don't have the credentials for this Jupyter space, <a target="_blank" href="https://huggingface.co/spaces/SpacesExamples/jupyterlab?duplicate=true">create your own.</a></h5><br><p>This template was created by <a href="https://twitter.com/camenduru" target="_blank" >camenduru</a> and <a href="https://huggingface.co/nateraw" target="_blank" >nateraw</a>, with contributions of <a href="https://huggingface.co/osanseviero" target="_blank" >osanseviero</a> and <a href="https://huggingface.co/azzr" target="_blank" >azzr</a> </p>{% if message %}<div class="row">
login.html+9-10