Spaces:
Paused
Paused
Clément Simon commited on
Commit ·
25d793a
1
Parent(s): 1319662
fix: production True
Browse files- app.py +1 -1
- static/layout.html +14 -20
- static/style.css +5 -0
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def create_env_file():
|
|
| 34 |
f.write(f"{secret}={secret_value}\n")
|
| 35 |
|
| 36 |
# Hugging face space secret retrieval:
|
| 37 |
-
production =
|
| 38 |
if production:
|
| 39 |
create_env_file()
|
| 40 |
|
|
|
|
| 34 |
f.write(f"{secret}={secret_value}\n")
|
| 35 |
|
| 36 |
# Hugging face space secret retrieval:
|
| 37 |
+
production = True
|
| 38 |
if production:
|
| 39 |
create_env_file()
|
| 40 |
|
static/layout.html
CHANGED
|
@@ -8,23 +8,17 @@
|
|
| 8 |
<ul class="menus">
|
| 9 |
<li class="main">
|
| 10 |
<a href="#">
|
| 11 |
-
<
|
| 12 |
</a>
|
| 13 |
</li>
|
| 14 |
<li class="menu">
|
| 15 |
-
<a href="#">
|
| 16 |
-
<i class="fas fa-home"></i>
|
| 17 |
-
</a>
|
| 18 |
</li>
|
| 19 |
<li class="menu">
|
| 20 |
-
<a href="#">
|
| 21 |
-
<i class="fas fa-sliders-h"></i>
|
| 22 |
-
</a>
|
| 23 |
</li>
|
| 24 |
<li class="menu">
|
| 25 |
-
<a href="#">
|
| 26 |
-
<i class="fas fa-cog"></i>
|
| 27 |
-
</a>
|
| 28 |
</li>
|
| 29 |
</ul>
|
| 30 |
</nav>
|
|
@@ -35,25 +29,25 @@
|
|
| 35 |
<li class="main"><span>Menus</span></li>
|
| 36 |
<li class="submenu">
|
| 37 |
<a href="#">Chat</a>
|
| 38 |
-
<!-- add mistral.png -->
|
| 39 |
-
<img src="/static/mistral.png" alt="Mistral" class="mistral" />
|
| 40 |
<div id="chat">
|
|
|
|
| 41 |
<input
|
| 42 |
type="text"
|
| 43 |
id="user_input"
|
| 44 |
-
placeholder="
|
| 45 |
/>
|
| 46 |
<button onclick="sendChat()">Send</button>
|
| 47 |
-
<ul id="chat_messages"></ul>
|
| 48 |
</div>
|
| 49 |
</li>
|
| 50 |
<li class="submenu">
|
| 51 |
<a href="#">Profile</a>
|
| 52 |
-
<
|
| 53 |
-
<
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
| 57 |
</li>
|
| 58 |
</ul>
|
| 59 |
</div>
|
|
@@ -64,4 +58,4 @@
|
|
| 64 |
<div id="map" class="map">{{ map_html | safe }}</div>
|
| 65 |
</div>
|
| 66 |
<script src="/static/script.js"></script>
|
| 67 |
-
</html>
|
|
|
|
| 8 |
<ul class="menus">
|
| 9 |
<li class="main">
|
| 10 |
<a href="#">
|
| 11 |
+
<img src="/static/mistral.png" alt="Mistral" class="mistral" />
|
| 12 |
</a>
|
| 13 |
</li>
|
| 14 |
<li class="menu">
|
| 15 |
+
<a href="#"><i class="fas fa-home"></i></a>
|
|
|
|
|
|
|
| 16 |
</li>
|
| 17 |
<li class="menu">
|
| 18 |
+
<a href="#"><i class="fas fa-sliders-h"></i></a>
|
|
|
|
|
|
|
| 19 |
</li>
|
| 20 |
<li class="menu">
|
| 21 |
+
<a href="#"><i class="fas fa-cog"></i></a>
|
|
|
|
|
|
|
| 22 |
</li>
|
| 23 |
</ul>
|
| 24 |
</nav>
|
|
|
|
| 29 |
<li class="main"><span>Menus</span></li>
|
| 30 |
<li class="submenu">
|
| 31 |
<a href="#">Chat</a>
|
|
|
|
|
|
|
| 32 |
<div id="chat">
|
| 33 |
+
<ul id="chat_messages"></ul>
|
| 34 |
<input
|
| 35 |
type="text"
|
| 36 |
id="user_input"
|
| 37 |
+
placeholder="Posez une question au modèle Mistral AI"
|
| 38 |
/>
|
| 39 |
<button onclick="sendChat()">Send</button>
|
|
|
|
| 40 |
</div>
|
| 41 |
</li>
|
| 42 |
<li class="submenu">
|
| 43 |
<a href="#">Profile</a>
|
| 44 |
+
<div id="profile">
|
| 45 |
+
<ul>
|
| 46 |
+
<li>Name: {{ user_profile.name }}</li>
|
| 47 |
+
<li>Age: {{ user_profile.age }}</li>
|
| 48 |
+
<li>Location: {{ user_profile.location }}</li>
|
| 49 |
+
</ul>
|
| 50 |
+
</div>
|
| 51 |
</li>
|
| 52 |
</ul>
|
| 53 |
</div>
|
|
|
|
| 58 |
<div id="map" class="map">{{ map_html | safe }}</div>
|
| 59 |
</div>
|
| 60 |
<script src="/static/script.js"></script>
|
| 61 |
+
</html>
|
static/style.css
CHANGED
|
@@ -182,4 +182,9 @@ header {
|
|
| 182 |
width: 100%;
|
| 183 |
height: 100%;
|
| 184 |
z-index: -1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
}
|
|
|
|
| 182 |
width: 100%;
|
| 183 |
height: 100%;
|
| 184 |
z-index: -1;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
.mistral {
|
| 188 |
+
width: 50px;
|
| 189 |
+
height: 42px;
|
| 190 |
}
|