CoolFace
Apppublic

Kamtera/testspace

sourceHugging Faceupdated 4y agoView on Hugging Face
0likes
login.html67 linesDownload Raw Back to root
1{% extends "page.html" %}2 3 4{% block stylesheet %}5{% endblock %}6 7{% block site %}8 9<div id="jupyter-main-app" class="container">10    11    <img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face Logo">12    <h4>You can duplicate this Space to run it private.</h4>13    <br>14    <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/DockerTemplates/jupyterlab?duplicate=true">     15    <img style="margin: 0" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&amp;style=flat&amp;logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&amp;logoWidth=14" alt="Duplicate Space"></a>16    <br>17    <br>18    <h4>Token is <span style="color:orange;">huggingface</span></h4>19  20    {% if login_available %}21    {# login_available means password-login is allowed. Show the form. #}22    <div class="row">23        <div class="navbar col-sm-8">24            <div class="navbar-inner">25                <div class="container">26                    <div class="center-nav">27                        <form action="{{base_url}}login?next={{next}}" method="post" class="navbar-form pull-left">28                            {{ xsrf_form_html() | safe }}29                            {% if token_available %}30                            <label for="password_input"><strong>{% trans %}Token:{% endtrans31                                    %}</strong></label>32                            {% else %}33                            <label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label>34                            {% endif %}35                            <input type="password" name="password" id="password_input" class="form-control">36                            <button type="submit" class="btn btn-default" id="login_submit">{% trans %}Log in{% endtrans37                                %}</button>38                        </form>39                    </div>40                </div>41            </div>42        </div>43    </div>44    {% else %}45    <p>{% trans %}No login available, you shouldn't be seeing this page.{% endtrans %}</p>46    {% endif %}47    {% if message %}48    <div class="row">49        {% for key in message %}50        <div class="message {{key}}">51            {{message[key]}}52        </div>53        {% endfor %}54    </div>55    {% endif %}56    {% if token_available %}57    {% block token_message %}58    59    {% endblock token_message %}60    {% endif %}61</div>62 63{% endblock %}64 65 66{% block script %}67{% endblock %}