Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,24 @@ PLACEHOLDER = """
|
|
19 |
</div>
|
20 |
"""
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
DESCRIPTION = """<div>
|
23 |
<p>๐ฎ๐น Italian LLM <a href="https://huggingface.co/mii-llm/maestrale-chat-v0.4-alpha"><b>Maestrale Chat v0.4 alpha</b></a>. Maestrale is a powerful language model for Italian, trained by mii-llm, based on Mistral 7B.</p>
|
24 |
<p>๐ For more details about Maestrale and how to use it with <code>transformers</code>, visit the <a href="https://huggingface.co/mii-llm/maestrale-chat-v0.4-alpha-sft">model card</a>.</p>
|
@@ -89,7 +107,18 @@ demo = gr.ChatInterface(
|
|
89 |
fn=chat,
|
90 |
chatbot=chatbot,
|
91 |
fill_height=True,
|
92 |
-
theme=gr.themes.Soft(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
additional_inputs_accordion=gr.Accordion(
|
94 |
label="โ๏ธ Parametri", open=False, render=False
|
95 |
),
|
|
|
19 |
</div>
|
20 |
"""
|
21 |
|
22 |
+
css = """
|
23 |
+
.message-row {
|
24 |
+
justify-content: space-evenly !important;
|
25 |
+
}
|
26 |
+
.message-bubble-border {
|
27 |
+
border-radius: 6px !important;
|
28 |
+
}
|
29 |
+
.dark.message-bubble-border {
|
30 |
+
border-color: #21293b !important;
|
31 |
+
}
|
32 |
+
.dark.user {
|
33 |
+
background: #0a1120 !important;
|
34 |
+
}
|
35 |
+
.dark.assistant {
|
36 |
+
background: transparent !important;
|
37 |
+
}
|
38 |
+
"""
|
39 |
+
|
40 |
DESCRIPTION = """<div>
|
41 |
<p>๐ฎ๐น Italian LLM <a href="https://huggingface.co/mii-llm/maestrale-chat-v0.4-alpha"><b>Maestrale Chat v0.4 alpha</b></a>. Maestrale is a powerful language model for Italian, trained by mii-llm, based on Mistral 7B.</p>
|
42 |
<p>๐ For more details about Maestrale and how to use it with <code>transformers</code>, visit the <a href="https://huggingface.co/mii-llm/maestrale-chat-v0.4-alpha-sft">model card</a>.</p>
|
|
|
107 |
fn=chat,
|
108 |
chatbot=chatbot,
|
109 |
fill_height=True,
|
110 |
+
theme=gr.themes.Soft(primary_hue="indigo", secondary_hue="blue", neutral_hue="gray",font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]).set(
|
111 |
+
body_background_fill_dark="#0f172a",
|
112 |
+
block_background_fill_dark="#0f172a",
|
113 |
+
block_border_width="1px",
|
114 |
+
block_title_background_fill_dark="#070d1b",
|
115 |
+
input_background_fill_dark="#0c1425",
|
116 |
+
button_secondary_background_fill_dark="#070d1b",
|
117 |
+
border_color_primary_dark="#21293b",
|
118 |
+
background_fill_secondary_dark="#0f172a",
|
119 |
+
color_accent_soft_dark="transparent"
|
120 |
+
),
|
121 |
+
css=css,
|
122 |
additional_inputs_accordion=gr.Accordion(
|
123 |
label="โ๏ธ Parametri", open=False, render=False
|
124 |
),
|