Spaces:
Running
Running
Commit
·
6997fc5
1
Parent(s):
ef3faba
fix: feedback from latest design review
Browse filesSigned-off-by: Graham White <[email protected]>
- src/app.css +6 -3
- src/app.py +3 -4
- src/themes/research_monochrome.py +2 -2
src/app.css
CHANGED
@@ -11,15 +11,16 @@ textarea, .wrapper > label {
|
|
11 |
}
|
12 |
/* Make the chat label bold */
|
13 |
.wrapper > label {
|
14 |
-
font-weight:
|
15 |
}
|
16 |
/* Limit the overall width of the demo */
|
17 |
.gradio-container {
|
18 |
-
max-width:
|
19 |
}
|
20 |
/* Theme anchor links with Carbon coloring */
|
21 |
-
.gr_docs_link a {
|
22 |
color: #78A9FF;
|
|
|
23 |
}
|
24 |
/* Title alignment with the Granite icon */
|
25 |
.gr_title {
|
@@ -35,6 +36,8 @@ textarea, .wrapper > label {
|
|
35 |
}
|
36 |
.gr_title h1 {
|
37 |
margin: auto !important;
|
|
|
|
|
38 |
}
|
39 |
/* Color the Granite icon in white for dark mode */
|
40 |
@media (prefers-color-scheme: dark) {
|
|
|
11 |
}
|
12 |
/* Make the chat label bold */
|
13 |
.wrapper > label {
|
14 |
+
font-weight: 600;
|
15 |
}
|
16 |
/* Limit the overall width of the demo */
|
17 |
.gradio-container {
|
18 |
+
max-width: 1024px !important;
|
19 |
}
|
20 |
/* Theme anchor links with Carbon coloring */
|
21 |
+
.gr_docs_link a, .gr_docs_link a > i {
|
22 |
color: #78A9FF;
|
23 |
+
text-decoration: none;
|
24 |
}
|
25 |
/* Title alignment with the Granite icon */
|
26 |
.gr_title {
|
|
|
36 |
}
|
37 |
.gr_title h1 {
|
38 |
margin: auto !important;
|
39 |
+
font-size: 36px;
|
40 |
+
font-weight: 600;
|
41 |
}
|
42 |
/* Color the Granite icon in white for dark mode */
|
43 |
@media (prefers-color-scheme: dark) {
|
src/app.py
CHANGED
@@ -20,11 +20,10 @@ You are Granite, developed by IBM. You are a helpful AI assistant"""
|
|
20 |
TITLE = "IBM Granite 3.1 8b Instruct"
|
21 |
DESCRIPTION = """
|
22 |
<p>Granite 3.1 is a general purpose large language model released in the open under an Apache 2.0 license. Granite
|
23 |
-
models support a 128k context length
|
24 |
-
|
25 |
-
<p>Try one of the sample prompts below or write your own. Remember, AI models can make mistakes.
|
26 |
<span class="gr_docs_link">
|
27 |
-
<a href="https://www.ibm.com/granite/docs/">View Documentation
|
28 |
</span>
|
29 |
</p>
|
30 |
"""
|
|
|
20 |
TITLE = "IBM Granite 3.1 8b Instruct"
|
21 |
DESCRIPTION = """
|
22 |
<p>Granite 3.1 is a general purpose large language model released in the open under an Apache 2.0 license. Granite
|
23 |
+
models support a 128k context length. Try one of the sample prompts below or write your own. Remember, AI models can
|
24 |
+
make mistakes. Note: This demo does not work on CPU.
|
|
|
25 |
<span class="gr_docs_link">
|
26 |
+
<a href="https://www.ibm.com/granite/docs/">View Documentation <i class="fa fa-external-link"></i></a>
|
27 |
</span>
|
28 |
</p>
|
29 |
"""
|
src/themes/research_monochrome.py
CHANGED
@@ -51,7 +51,7 @@ theme = gr.themes.Base(
|
|
51 |
),
|
52 |
spacing_size=sizes.spacing_md, # change spacing to default size
|
53 |
radius_size=sizes.radius_md, # change spacing to default size and Keep Radius to make demo feel more playful
|
54 |
-
text_size=sizes.
|
55 |
# spacing_size: sizes.Size | str = sizes.spacing_md, #change spacing to default size
|
56 |
# radius_size: sizes.Size | str = sizes.radius_md, #change spacing to default size and Keep Radius to make
|
57 |
# demo feel more playful
|
@@ -78,7 +78,7 @@ theme = gr.themes.Base(
|
|
78 |
block_label_text_color_dark="white",
|
79 |
block_title_radius="*block_label_radius",
|
80 |
block_title_background_fill="*block_label_background_fill",
|
81 |
-
block_title_text_weight="
|
82 |
block_title_text_color="black",
|
83 |
block_title_text_color_dark="white",
|
84 |
block_label_margin="*spacing_md",
|
|
|
51 |
),
|
52 |
spacing_size=sizes.spacing_md, # change spacing to default size
|
53 |
radius_size=sizes.radius_md, # change spacing to default size and Keep Radius to make demo feel more playful
|
54 |
+
text_size=sizes.text_md, # change fontsize to default size
|
55 |
# spacing_size: sizes.Size | str = sizes.spacing_md, #change spacing to default size
|
56 |
# radius_size: sizes.Size | str = sizes.radius_md, #change spacing to default size and Keep Radius to make
|
57 |
# demo feel more playful
|
|
|
78 |
block_label_text_color_dark="white",
|
79 |
block_title_radius="*block_label_radius",
|
80 |
block_title_background_fill="*block_label_background_fill",
|
81 |
+
block_title_text_weight="400",
|
82 |
block_title_text_color="black",
|
83 |
block_title_text_color_dark="white",
|
84 |
block_label_margin="*spacing_md",
|