Commit
•
9b78de1
1
Parent(s):
caf045c
add note
Browse files- login.html +112 -63
login.html
CHANGED
@@ -1,69 +1,118 @@
|
|
1 |
-
{% extends "page.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
-
{%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
<div
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
<
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
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 %}
|
|
|
1 |
+
{% extends "page.html" %} {% block stylesheet %}
|
2 |
+
<style>
|
3 |
+
body {
|
4 |
+
font-family: Arial, sans-serif;
|
5 |
+
line-height: 1.6;
|
6 |
+
color: #333;
|
7 |
+
}
|
8 |
+
.container {
|
9 |
+
max-width: 800px;
|
10 |
+
margin: 20px auto;
|
11 |
+
padding: 20px;
|
12 |
+
background-color: #f9f9f9;
|
13 |
+
border-radius: 8px;
|
14 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
15 |
+
}
|
16 |
+
h1,
|
17 |
+
h2,
|
18 |
+
h3 {
|
19 |
+
color: #2c3e50;
|
20 |
+
}
|
21 |
+
.center-align {
|
22 |
+
text-align: center;
|
23 |
+
}
|
24 |
+
.left-align {
|
25 |
+
text-align: left;
|
26 |
+
}
|
27 |
+
.login-form {
|
28 |
+
margin-top: 20px;
|
29 |
+
padding: 20px;
|
30 |
+
background-color: #ffffff;
|
31 |
+
border-radius: 8px;
|
32 |
+
}
|
33 |
+
</style>
|
34 |
+
{% endblock %} {% block site %}
|
35 |
+
<div id="jupyter-main-app" class="container">
|
36 |
+
<div class="center-align">
|
37 |
+
<h1>Welcome to the ColPali Fine-tuning Space</h1>
|
38 |
+
</div>
|
39 |
|
40 |
+
<div class="left-align">
|
41 |
+
<h2>About This Space</h2>
|
42 |
+
<p>
|
43 |
+
This Space allows you to run a Jupyter notebook for fine-tuning ColPali
|
44 |
+
without needing to setup anything. To use this Space, you will need a
|
45 |
+
Hugging Face account and then you can duplicate the Space to your account.
|
46 |
+
</p>
|
47 |
+
<p>
|
48 |
+
<strong>Note:</strong> GPU spaces are charged by the minute. The cost will
|
49 |
+
be shown when you go to duplicate the space. Currently, the notebook won't
|
50 |
+
be saved on restarts unless you enable persistent storage for your space.
|
51 |
+
</p>
|
52 |
+
</div>
|
53 |
|
54 |
+
<div class="center-align">
|
55 |
+
<h2>Getting Started</h2>
|
56 |
+
<p>
|
57 |
+
To use this Space and access the ColPali fine-tuning notebook, please
|
58 |
+
duplicate it to your account:
|
59 |
+
</p>
|
60 |
+
<a
|
61 |
+
class="duplicate-button"
|
62 |
+
style="display: inline-block"
|
63 |
+
target="_blank"
|
64 |
+
href="https://huggingface.co/spaces/{{repo_owner}}/{{repo_name}}?duplicate=true"
|
65 |
+
>
|
66 |
+
<img
|
67 |
+
style="margin: 0"
|
68 |
+
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"
|
69 |
+
alt="Duplicate Space"
|
70 |
+
/>
|
71 |
+
</a>
|
72 |
+
</div>
|
73 |
|
74 |
+
{% if login_available %}
|
75 |
+
<div class="login-form center-align">
|
76 |
+
<h2>Log In</h2>
|
77 |
+
<p>The default token is <span style="color: orange">huggingface</span></p>
|
78 |
+
<form
|
79 |
+
action="{{base_url}}login?next={{next}}"
|
80 |
+
method="post"
|
81 |
+
class="form-inline"
|
82 |
+
>
|
83 |
+
{{ xsrf_form_html() | safe }}
|
84 |
+
<label for="password_input"><strong>Token:</strong></label>
|
85 |
+
<input
|
86 |
+
type="password"
|
87 |
+
name="password"
|
88 |
+
id="password_input"
|
89 |
+
class="form-control"
|
90 |
+
/>
|
91 |
+
<button type="submit" class="btn btn-primary" id="login_submit">
|
92 |
+
Log in
|
93 |
+
</button>
|
94 |
+
</form>
|
95 |
+
</div>
|
96 |
+
{% else %}
|
97 |
+
<div class="center-align">
|
98 |
+
<p>No login available. You shouldn't be seeing this page.</p>
|
99 |
+
</div>
|
100 |
+
{% endif %}
|
101 |
|
102 |
+
<div
|
103 |
+
class="center-align"
|
104 |
+
style="font-size: 0.8em; color: #888; margin-top: 20px"
|
105 |
+
>
|
106 |
+
<p>
|
107 |
+
This template was created by
|
108 |
+
<a href="https://twitter.com/camenduru" target="_blank">camenduru</a> and
|
109 |
+
<a href="https://huggingface.co/nateraw" target="_blank">nateraw</a>, with
|
110 |
+
contributions from
|
111 |
+
<a href="https://huggingface.co/osanseviero" target="_blank"
|
112 |
+
>osanseviero</a
|
113 |
+
>
|
114 |
+
and <a href="https://huggingface.co/azzr" target="_blank">azzr</a>
|
115 |
+
</p>
|
116 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
</div>
|
|
|
118 |
{% endblock %}
|
|
|
|
|
|
|
|