Spaces:
Runtime error
Runtime error
login modified
Browse files- .DS_Store +0 -0
- .history/login_20240520141119.html +0 -0
- .history/login_20240520141122.html +61 -0
- .vscode/settings.json +7 -0
- hf-spaces-jupyterlab.zip +3 -0
- login.html +59 -67
- login.html.old +69 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
.history/login_20240520141119.html
ADDED
File without changes
|
.history/login_20240520141122.html
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Login</title>
|
7 |
+
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
background-color: #121212;
|
11 |
+
color: #ffffff;
|
12 |
+
display: flex;
|
13 |
+
justify-content: center;
|
14 |
+
align-items: center;
|
15 |
+
height: 100vh;
|
16 |
+
margin: 0;
|
17 |
+
}
|
18 |
+
.login-container {
|
19 |
+
background-color: #1e1e1e;
|
20 |
+
padding: 2rem;
|
21 |
+
border-radius: 8px;
|
22 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
23 |
+
}
|
24 |
+
.form-control {
|
25 |
+
background-color: #2b2b2b;
|
26 |
+
color: #ffffff;
|
27 |
+
border: 1px solid #444444;
|
28 |
+
}
|
29 |
+
.btn-primary {
|
30 |
+
background-color: #3a3a3a;
|
31 |
+
border: none;
|
32 |
+
}
|
33 |
+
.btn-primary:hover {
|
34 |
+
background-color: #575757;
|
35 |
+
}
|
36 |
+
</style>
|
37 |
+
</head>
|
38 |
+
<body>
|
39 |
+
<div class="login-container">
|
40 |
+
<h3 class="text-center">Login</h3>
|
41 |
+
<form action="{{base_url}}login?next={{next}}" method="post">
|
42 |
+
{{ xsrf_form_html() | safe }}
|
43 |
+
{% if token_available %}
|
44 |
+
<div class="form-group">
|
45 |
+
<label for="password_input"><strong>Token:</strong></label>
|
46 |
+
<input type="password" name="password" id="password_input" class="form-control" required>
|
47 |
+
</div>
|
48 |
+
{% else %}
|
49 |
+
<div class="form-group">
|
50 |
+
<label for="password_input"><strong>Password:</strong></label>
|
51 |
+
<input type="password" name="password" id="password_input" class="form-control" required>
|
52 |
+
</div>
|
53 |
+
{% endif %}
|
54 |
+
<button type="submit" class="btn btn-primary btn-block">Log in</button>
|
55 |
+
</form>
|
56 |
+
</div>
|
57 |
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
|
58 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
|
59 |
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
60 |
+
</body>
|
61 |
+
</html>
|
.vscode/settings.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"workbench.colorCustomizations": {
|
3 |
+
"activityBar.background": "#2C3008",
|
4 |
+
"titleBar.activeBackground": "#3D430B",
|
5 |
+
"titleBar.activeForeground": "#FAFBEA"
|
6 |
+
}
|
7 |
+
}
|
hf-spaces-jupyterlab.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3ed2d08bd8e7bae6829e941162cb6c09d1d2a842f85b16c68085aded426aa8a
|
3 |
+
size 75775
|
login.html
CHANGED
@@ -1,69 +1,61 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
42 |
</div>
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
{% for key in message %}
|
52 |
-
<div class="message {{key}}">
|
53 |
-
{{message[key]}}
|
54 |
-
</div>
|
55 |
-
{% endfor %}
|
56 |
</div>
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
{% endif %}
|
63 |
-
</div>
|
64 |
-
|
65 |
-
{% endblock %}
|
66 |
-
|
67 |
-
|
68 |
-
{% block script %}
|
69 |
-
{% endblock %}
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Login</title>
|
7 |
+
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
background-color: #121212;
|
11 |
+
color: #ffffff;
|
12 |
+
display: flex;
|
13 |
+
justify-content: center;
|
14 |
+
align-items: center;
|
15 |
+
height: 100vh;
|
16 |
+
margin: 0;
|
17 |
+
}
|
18 |
+
.login-container {
|
19 |
+
background-color: #1e1e1e;
|
20 |
+
padding: 2rem;
|
21 |
+
border-radius: 8px;
|
22 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
23 |
+
}
|
24 |
+
.form-control {
|
25 |
+
background-color: #2b2b2b;
|
26 |
+
color: #ffffff;
|
27 |
+
border: 1px solid #444444;
|
28 |
+
}
|
29 |
+
.btn-primary {
|
30 |
+
background-color: #3a3a3a;
|
31 |
+
border: none;
|
32 |
+
}
|
33 |
+
.btn-primary:hover {
|
34 |
+
background-color: #575757;
|
35 |
+
}
|
36 |
+
</style>
|
37 |
+
</head>
|
38 |
+
<body>
|
39 |
+
<div class="login-container">
|
40 |
+
<h3 class="text-center">Login</h3>
|
41 |
+
<form action="{{base_url}}login?next={{next}}" method="post">
|
42 |
+
{{ xsrf_form_html() | safe }}
|
43 |
+
{% if token_available %}
|
44 |
+
<div class="form-group">
|
45 |
+
<label for="password_input"><strong>Token:</strong></label>
|
46 |
+
<input type="password" name="password" id="password_input" class="form-control" required>
|
47 |
</div>
|
48 |
+
{% else %}
|
49 |
+
<div class="form-group">
|
50 |
+
<label for="password_input"><strong>Password:</strong></label>
|
51 |
+
<input type="password" name="password" id="password_input" class="form-control" required>
|
52 |
+
</div>
|
53 |
+
{% endif %}
|
54 |
+
<button type="submit" class="btn btn-primary btn-block">Log in</button>
|
55 |
+
</form>
|
|
|
|
|
|
|
|
|
|
|
56 |
</div>
|
57 |
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
|
58 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
|
59 |
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
60 |
+
</body>
|
61 |
+
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
login.html.old
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
|
16 |
+
<br>
|
17 |
+
<br>
|
18 |
+
<h4>The default token is <span style="color:orange;">huggingface</span></h4>
|
19 |
+
<h4>Duplicate the Space to run your own instance</h4>
|
20 |
+
|
21 |
+
{% if login_available %}
|
22 |
+
{# login_available means password-login is allowed. Show the form. #}
|
23 |
+
<div class="row">
|
24 |
+
<div class="navbar col-sm-8">
|
25 |
+
<div class="navbar-inner">
|
26 |
+
<div class="container">
|
27 |
+
<div class="center-nav">
|
28 |
+
<form action="{{base_url}}login?next={{next}}" method="post" class="navbar-form pull-left">
|
29 |
+
{{ xsrf_form_html() | safe }}
|
30 |
+
{% if token_available %}
|
31 |
+
<label for="password_input"><strong>{% trans %}Token:{% endtrans
|
32 |
+
%}</strong></label>
|
33 |
+
{% else %}
|
34 |
+
<label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label>
|
35 |
+
{% endif %}
|
36 |
+
<input type="password" name="password" id="password_input" class="form-control">
|
37 |
+
<button type="submit" class="btn btn-default" id="login_submit">{% trans %}Log in{% endtrans
|
38 |
+
%}</button>
|
39 |
+
</form>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
{% else %}
|
46 |
+
<p>{% trans %}No login available, you shouldn't be seeing this page.{% endtrans %}</p>
|
47 |
+
{% endif %}
|
48 |
+
<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>
|
49 |
+
{% if message %}
|
50 |
+
<div class="row">
|
51 |
+
{% for key in message %}
|
52 |
+
<div class="message {{key}}">
|
53 |
+
{{message[key]}}
|
54 |
+
</div>
|
55 |
+
{% endfor %}
|
56 |
+
</div>
|
57 |
+
{% endif %}
|
58 |
+
{% if token_available %}
|
59 |
+
{% block token_message %}
|
60 |
+
|
61 |
+
{% endblock token_message %}
|
62 |
+
{% endif %}
|
63 |
+
</div>
|
64 |
+
|
65 |
+
{% endblock %}
|
66 |
+
|
67 |
+
|
68 |
+
{% block script %}
|
69 |
+
{% endblock %}
|