Spaces:
Paused
Paused
update html
Browse files- app.py +1 -1
- static/layout.html +16 -14
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 = False
|
38 |
if production:
|
39 |
create_env_file()
|
40 |
|
static/layout.html
CHANGED
@@ -1,18 +1,23 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
|
|
3 |
<link rel="stylesheet" href="/static/style.css" />
|
4 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
5 |
-
|
|
|
|
|
|
|
|
|
6 |
<header>
|
7 |
<nav>
|
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-
|
16 |
</li>
|
17 |
<li class="menu">
|
18 |
<a href="#"><i class="fas fa-sliders-h"></i></a>
|
@@ -31,11 +36,7 @@
|
|
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>
|
@@ -52,10 +53,11 @@
|
|
52 |
</ul>
|
53 |
</div>
|
54 |
</div>
|
55 |
-
<
|
56 |
-
<h1>
|
57 |
-
<div id="
|
58 |
-
|
59 |
-
</div>
|
60 |
<script src="/static/script.js"></script>
|
61 |
-
|
|
|
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
+
<head>
|
4 |
<link rel="stylesheet" href="/static/style.css" />
|
5 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
6 |
+
<style>
|
7 |
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
|
8 |
+
</style>
|
9 |
+
</head>
|
10 |
+
<body>
|
11 |
<header>
|
12 |
<nav>
|
13 |
<ul class="menus">
|
14 |
<li class="main">
|
15 |
<a href="#">
|
16 |
+
<img src="/static/mistral.png" alt="Mistral" class="mistral" />
|
17 |
</a>
|
18 |
</li>
|
19 |
<li class="menu">
|
20 |
+
<a href="#"><i class="fas fa-cloud-sun-rain"></i></a> <!-- Changed icon -->
|
21 |
</li>
|
22 |
<li class="menu">
|
23 |
<a href="#"><i class="fas fa-sliders-h"></i></a>
|
|
|
36 |
<a href="#">Chat</a>
|
37 |
<div id="chat">
|
38 |
<ul id="chat_messages"></ul>
|
39 |
+
<input type="text" id="user_input" placeholder="Posez une question au modèle Mistral AI" />
|
|
|
|
|
|
|
|
|
40 |
<button onclick="sendChat()">Send</button>
|
41 |
</div>
|
42 |
</li>
|
|
|
53 |
</ul>
|
54 |
</div>
|
55 |
</div>
|
56 |
+
<div id="mainContent">
|
57 |
+
<h1 style="text-align:center;">Welcome to Mistral AI</h1> <!-- Centered title -->
|
58 |
+
<div id="map" class="map">{{ map_html | safe }}</div>
|
59 |
+
</div>
|
|
|
60 |
<script src="/static/script.js"></script>
|
61 |
+
<div class="animated-background"></div> <!-- Animated background -->
|
62 |
+
</body>
|
63 |
+
</html>
|