Spaces:
Runtime error
Runtime error
Commit ·
0657501
1
Parent(s): aca9c3d
fonts
Browse files
.gitattributes
CHANGED
|
@@ -37,3 +37,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 37 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
assets/* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 37 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
assets/* filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
assets/chat_icons filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
assets/fonts filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -150,11 +150,11 @@ def main():
|
|
| 150 |
value=[{"role": "assistant", "content": "Wie kann ich dir helfen?"}],
|
| 151 |
type="messages",
|
| 152 |
show_label=False,
|
| 153 |
-
avatar_images=("./assets/
|
| 154 |
elem_id="CHATBOT",
|
| 155 |
height=450
|
| 156 |
)
|
| 157 |
-
|
| 158 |
chatinterface = gr.ChatInterface(
|
| 159 |
fn=response,
|
| 160 |
chatbot=chatbot,
|
|
|
|
| 150 |
value=[{"role": "assistant", "content": "Wie kann ich dir helfen?"}],
|
| 151 |
type="messages",
|
| 152 |
show_label=False,
|
| 153 |
+
avatar_images=("./assets/chat_icons/person_icon.png", "./assets/chat_icons/chatbot_icon.png"),
|
| 154 |
elem_id="CHATBOT",
|
| 155 |
height=450
|
| 156 |
)
|
| 157 |
+
|
| 158 |
chatinterface = gr.ChatInterface(
|
| 159 |
fn=response,
|
| 160 |
chatbot=chatbot,
|
style.css
CHANGED
|
@@ -1,21 +1,26 @@
|
|
| 1 |
/* Inter Font laden */
|
| 2 |
@font-face {
|
| 3 |
font-family: "Inter";
|
| 4 |
-
src: url("./fonts/Inter.ttf") format("truetype");
|
| 5 |
font-weight: 400;
|
| 6 |
font-style: normal;
|
| 7 |
}
|
| 8 |
|
| 9 |
@font-face {
|
| 10 |
font-family: "LemonMilk";
|
| 11 |
-
src: url("./fonts/LemonMilk.otf") format("opentype");
|
| 12 |
font-weight: 700;
|
| 13 |
font-style: normal;
|
| 14 |
}
|
| 15 |
|
| 16 |
/* Bot Nachricht - Farbe #8EA1C0 */
|
| 17 |
-
.message.bot
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
font-family: "Inter", sans-serif !important;
|
| 20 |
}
|
| 21 |
|
|
@@ -26,7 +31,7 @@
|
|
| 26 |
.message.user span,
|
| 27 |
.message.user div {
|
| 28 |
background: #AECDE9 !important;
|
| 29 |
-
color: #
|
| 30 |
font-family: "Inter", sans-serif !important;
|
| 31 |
}
|
| 32 |
|
|
@@ -60,20 +65,20 @@ h1, .main > div > h1 {
|
|
| 60 |
margin: 5px auto !important;
|
| 61 |
width: fit-content !important;
|
| 62 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 63 |
-
color: #
|
| 64 |
font-family: "LemonMilk", sans-serif !important;
|
| 65 |
}
|
| 66 |
|
| 67 |
-
/* Eingabefeld
|
| 68 |
.input-container,
|
| 69 |
[class*="input-container"],
|
| 70 |
form,
|
| 71 |
div.form {
|
| 72 |
-
max-width:
|
| 73 |
margin-right: 0px !important;
|
| 74 |
}
|
| 75 |
|
| 76 |
-
/* Eingabefeld
|
| 77 |
textarea, input[type="text"] {
|
| 78 |
background: #EDEDED !important;
|
| 79 |
border: 3px solid #8EA1C0 !important;
|
|
@@ -117,7 +122,6 @@ button[aria-label="Undo"],
|
|
| 117 |
display: none !important;
|
| 118 |
}
|
| 119 |
|
| 120 |
-
/* Submit Button - z-index höher */
|
| 121 |
button[aria-label="Submit"],
|
| 122 |
.submit-button,
|
| 123 |
button.submit-button,
|
|
@@ -134,13 +138,16 @@ button.submit-button,
|
|
| 134 |
display: flex !important;
|
| 135 |
align-items: center !important;
|
| 136 |
justify-content: center !important;
|
| 137 |
-
|
|
|
|
|
|
|
| 138 |
position: relative !important;
|
| 139 |
-
transform: translateY(-5px) !important;
|
| 140 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 141 |
z-index: 10 !important;
|
| 142 |
}
|
| 143 |
|
|
|
|
| 144 |
/* Submit Button Icon (SVG) färben */
|
| 145 |
button[aria-label="Submit"] svg,
|
| 146 |
.submit-button svg,
|
|
@@ -159,7 +166,7 @@ button.submit-button svg path,
|
|
| 159 |
[class*="submit-button"] svg path,
|
| 160 |
button[aria-label="Submit"] svg g,
|
| 161 |
.submit-button svg g,
|
| 162 |
-
button
|
| 163 |
[class*="submit-button"] svg g {
|
| 164 |
fill: #000000 !important;
|
| 165 |
stroke: #000000 !important;
|
|
@@ -182,3 +189,40 @@ input[type="text"]::-webkit-scrollbar-thumb {
|
|
| 182 |
background: #000000 !important;
|
| 183 |
border-radius: 10px !important;
|
| 184 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
/* Inter Font laden */
|
| 2 |
@font-face {
|
| 3 |
font-family: "Inter";
|
| 4 |
+
src: url("./assets/fonts/Inter.ttf") format("truetype");
|
| 5 |
font-weight: 400;
|
| 6 |
font-style: normal;
|
| 7 |
}
|
| 8 |
|
| 9 |
@font-face {
|
| 10 |
font-family: "LemonMilk";
|
| 11 |
+
src: url("./assets/fonts/LemonMilk.otf") format("opentype");
|
| 12 |
font-weight: 700;
|
| 13 |
font-style: normal;
|
| 14 |
}
|
| 15 |
|
| 16 |
/* Bot Nachricht - Farbe #8EA1C0 */
|
| 17 |
+
.message.bot,
|
| 18 |
+
.message.bot *,
|
| 19 |
+
.message.bot p,
|
| 20 |
+
.message.bot span,
|
| 21 |
+
.message.bot div {
|
| 22 |
+
background: #AECDE9 !important;
|
| 23 |
+
color: #3E414A !important;
|
| 24 |
font-family: "Inter", sans-serif !important;
|
| 25 |
}
|
| 26 |
|
|
|
|
| 31 |
.message.user span,
|
| 32 |
.message.user div {
|
| 33 |
background: #AECDE9 !important;
|
| 34 |
+
color: #3E414A !important;
|
| 35 |
font-family: "Inter", sans-serif !important;
|
| 36 |
}
|
| 37 |
|
|
|
|
| 65 |
margin: 5px auto !important;
|
| 66 |
width: fit-content !important;
|
| 67 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 68 |
+
color: #3E414A !important;
|
| 69 |
font-family: "LemonMilk", sans-serif !important;
|
| 70 |
}
|
| 71 |
|
| 72 |
+
/* Eingabefeld-Container wieder volle Breite */
|
| 73 |
.input-container,
|
| 74 |
[class*="input-container"],
|
| 75 |
form,
|
| 76 |
div.form {
|
| 77 |
+
max-width: 100% !important; /* wieder volle Breite */
|
| 78 |
margin-right: 0px !important;
|
| 79 |
}
|
| 80 |
|
| 81 |
+
/* Eingabefeld */
|
| 82 |
textarea, input[type="text"] {
|
| 83 |
background: #EDEDED !important;
|
| 84 |
border: 3px solid #8EA1C0 !important;
|
|
|
|
| 122 |
display: none !important;
|
| 123 |
}
|
| 124 |
|
|
|
|
| 125 |
button[aria-label="Submit"],
|
| 126 |
.submit-button,
|
| 127 |
button.submit-button,
|
|
|
|
| 138 |
display: flex !important;
|
| 139 |
align-items: center !important;
|
| 140 |
justify-content: center !important;
|
| 141 |
+
|
| 142 |
+
margin-left: auto !important; /* bleibt, damit er nach rechts rutscht */
|
| 143 |
+
margin-right: 10px !important; /* ← hier 10–20px einstellen, z.B. 10px */
|
| 144 |
position: relative !important;
|
| 145 |
+
transform: translateY(-5px) !important;
|
| 146 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 147 |
z-index: 10 !important;
|
| 148 |
}
|
| 149 |
|
| 150 |
+
|
| 151 |
/* Submit Button Icon (SVG) färben */
|
| 152 |
button[aria-label="Submit"] svg,
|
| 153 |
.submit-button svg,
|
|
|
|
| 166 |
[class*="submit-button"] svg path,
|
| 167 |
button[aria-label="Submit"] svg g,
|
| 168 |
.submit-button svg g,
|
| 169 |
+
button-submit svg g,
|
| 170 |
[class*="submit-button"] svg g {
|
| 171 |
fill: #000000 !important;
|
| 172 |
stroke: #000000 !important;
|
|
|
|
| 189 |
background: #000000 !important;
|
| 190 |
border-radius: 10px !important;
|
| 191 |
}
|
| 192 |
+
|
| 193 |
+
/* Stop-Button während der Antwort */
|
| 194 |
+
button[aria-label="Stop"],
|
| 195 |
+
button[aria-label="Stop generation"],
|
| 196 |
+
[class*="stop-button"] {
|
| 197 |
+
background-color: #3E414A !important;
|
| 198 |
+
border-radius: 50% !important;
|
| 199 |
+
width: 40px !important;
|
| 200 |
+
height: 40px !important;
|
| 201 |
+
min-width: 40px !important;
|
| 202 |
+
min-height: 40px !important;
|
| 203 |
+
padding: 0px !important;
|
| 204 |
+
|
| 205 |
+
border: 2px solid #3E414A !important; /* gleiche Kontur wie gewünscht */
|
| 206 |
+
|
| 207 |
+
outline: none !important;
|
| 208 |
+
display: flex !important;
|
| 209 |
+
align-items: center !important;
|
| 210 |
+
justify-content: center !important;
|
| 211 |
+
|
| 212 |
+
margin-left: auto !important; /* gleiche Position wie Submit */
|
| 213 |
+
margin-right: 10px !important;
|
| 214 |
+
position: relative !important;
|
| 215 |
+
transform: translateY(-5px) !important;
|
| 216 |
+
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 217 |
+
z-index: 10 !important;
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
/* Stop-Icon selbst */
|
| 221 |
+
button[aria-label="Stop"] svg,
|
| 222 |
+
button[aria-label="Stop generation"] svg,
|
| 223 |
+
[class*="stop-button"] svg {
|
| 224 |
+
width: 24px !important; /* wie Submit-Icon */
|
| 225 |
+
height: 24px !important;
|
| 226 |
+
fill: #EDEDED !important;
|
| 227 |
+
stroke: #EDEDED !important;
|
| 228 |
+
}
|
theme.py
CHANGED
|
@@ -13,7 +13,7 @@ class CustomTheme(gr.themes.Base):
|
|
| 13 |
body_background_fill="#8EA1C0",
|
| 14 |
body_background_fill_dark="#8EA1C0",
|
| 15 |
button_primary_background_fill="#8EA1C0",
|
| 16 |
-
button_primary_background_fill_hover="#
|
| 17 |
button_primary_text_color="#FFFFFF",
|
| 18 |
button_secondary_background_fill="#EDEDED",
|
| 19 |
input_background_fill="#EDEDED",
|
|
|
|
| 13 |
body_background_fill="#8EA1C0",
|
| 14 |
body_background_fill_dark="#8EA1C0",
|
| 15 |
button_primary_background_fill="#8EA1C0",
|
| 16 |
+
button_primary_background_fill_hover="#7A91B0",
|
| 17 |
button_primary_text_color="#FFFFFF",
|
| 18 |
button_secondary_background_fill="#EDEDED",
|
| 19 |
input_background_fill="#EDEDED",
|