Spaces:
Sleeping
Sleeping
another text attempt 3??
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
# Define the theme with custom colors and styles
|
4 |
theme = gr.themes.Default(
|
5 |
primary_hue=gr.themes.Color(
|
6 |
c100="#ffedd5", c200="#fed7aa", c300="#ffe09e", c400="#c2814c",
|
@@ -9,14 +9,14 @@ theme = gr.themes.Default(
|
|
9 |
),
|
10 |
secondary_hue="red",
|
11 |
neutral_hue="slate",
|
12 |
-
font=[gr.themes.GoogleFont('
|
13 |
font_mono=[gr.themes.GoogleFont('xkcd'), 'ui-monospace', 'Consolas', 'monospace'],
|
14 |
).set(
|
15 |
body_text_color='*primary_950',
|
16 |
body_text_color_dark='*secondary_50',
|
17 |
-
body_text_size='
|
18 |
body_text_color_subdued='*primary_400',
|
19 |
-
body_text_weight='
|
20 |
background_fill_primary='*primary_300',
|
21 |
background_fill_primary_dark='*primary_800',
|
22 |
background_fill_secondary='*primary_50',
|
@@ -27,7 +27,6 @@ theme = gr.themes.Default(
|
|
27 |
link_text_color='*secondary_800',
|
28 |
code_background_fill='*neutral_200',
|
29 |
code_background_fill_dark='*neutral_100',
|
30 |
-
block_info_text_size='*text_lg',
|
31 |
block_shadow='none',
|
32 |
block_shadow_dark='none',
|
33 |
form_gap_width='0px',
|
@@ -171,7 +170,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
171 |
with gr.Row():
|
172 |
with gr.Column():
|
173 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
174 |
-
answer = gr.Textbox(label="GloBot Response", placeholder="GloBot will respond here...", interactive=False, lines=
|
175 |
submit_button = gr.Button("Submit")
|
176 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
177 |
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
# Define the theme with custom colors and styles, including larger text sizes
|
4 |
theme = gr.themes.Default(
|
5 |
primary_hue=gr.themes.Color(
|
6 |
c100="#ffedd5", c200="#fed7aa", c300="#ffe09e", c400="#c2814c",
|
|
|
9 |
),
|
10 |
secondary_hue="red",
|
11 |
neutral_hue="slate",
|
12 |
+
font=[gr.themes.GoogleFont('jack armstrong'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
13 |
font_mono=[gr.themes.GoogleFont('xkcd'), 'ui-monospace', 'Consolas', 'monospace'],
|
14 |
).set(
|
15 |
body_text_color='*primary_950',
|
16 |
body_text_color_dark='*secondary_50',
|
17 |
+
body_text_size='20px', # Increase body text size
|
18 |
body_text_color_subdued='*primary_400',
|
19 |
+
body_text_weight='500',
|
20 |
background_fill_primary='*primary_300',
|
21 |
background_fill_primary_dark='*primary_800',
|
22 |
background_fill_secondary='*primary_50',
|
|
|
27 |
link_text_color='*secondary_800',
|
28 |
code_background_fill='*neutral_200',
|
29 |
code_background_fill_dark='*neutral_100',
|
|
|
30 |
block_shadow='none',
|
31 |
block_shadow_dark='none',
|
32 |
form_gap_width='0px',
|
|
|
170 |
with gr.Row():
|
171 |
with gr.Column():
|
172 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
173 |
+
answer = gr.Textbox(label="GloBot Response", placeholder="GloBot will respond here...", interactive=False, lines=10)
|
174 |
submit_button = gr.Button("Submit")
|
175 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
176 |
|